Skip to content

shyke0611/unit_testing_practise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation


Java Unit Testing using Junit and jacoco using simple Prime number storing algorithm



Control Flow Diagram

IMG_0AD0B59B9686-1

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

image image

About

Practising unit testing using Junit. Branch testing, Edge cases, Data flow testing, Equivalence testing

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors