What is the basis test set?

The basis test set is a series of tests done on the internal structures of a component in software.

The basis test set is normally formulated by the developers who perform unit testing, and they employ various techniques to test the internal structure of the component.

Techniques

  • Branch coverage: Ensures that all the reachable code is executed at least once.
  • Path coverage: Ensures all linearly independent paths of a program are executed at least once.
  • Statement coverage: Ensures all the statements in the code are executed at least once.

When to perform the basis test set

Developers use the basis test set after testing the functionality of the code to test each line of the code using path testing, statement testing, and branch testing.

New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved