This is the repository to experiment with testing. You only need to test evaluateGuess()
method
For this task we will create test cases from the ShapeClassifier specification. You should refrain from looking at the code as a source for test cases. You will test this program by identifying equivalence classes for inputs, encoding these partitions as an ACTS test specification (conditions and constraints), and using ACTS to generate test inputs accordingly. For this question, your steps are roughly as follows:
- Identify equivalence classes and constraints for the ShapeClassifier inputs
- Translate the equivalence classes generated in step A to test cases using weak equivalence class testings
- Construct and execute JUnit test cases for each test case.
The ACTS tool can be accessed in the ACTS folder.
Derive test cases from the source code of the evaluateGuess
method using whitebox testing. Using branch coverage as a guide, generate
test cases that achieve the highest possible coverage numbers.
- Study the code and create a JUnit testcase to traverse a branch.
- Execute that testcase under a code coverage tool and observe the branch coverage.
- Repeat this process selecting a different branch to exercise until you run out of time.
mvn clean test