You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Java Unit Testing using Junit and jacoco using simple Prime number storing algorithm
Control Flow Diagram
Testing Strategy
Branch Testing: Ensures that every possible branch (decision point) in the code is executed at least once.
Data Flow Testing: Focuses on testing the paths from variable definitions to their uses to ensure correct usage. In this project, the variable index in the PrimeNumbers class is tracked from its definition to its uses.
Equivalence Partitioning: Divides input data into partitions of equivalent data to reduce the number of test cases while maintaining coverage. In this project, the input range for the PrimeNumbers class is partitioned into valid (1 to 10000) and invalid (less than 1, greater than 10000) classes.
JaCoCo Code Coverage Report
About
Practising unit testing using Junit. Branch testing, Edge cases, Data flow testing, Equivalence testing