Skip to content

Commit

Permalink
Update Report3.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmeline1101 authored Feb 20, 2024
1 parent b40ba2e commit 85e1b1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Report3.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public int factorial(int number) {
}
return result;
}
```
A structural test case for this method would not only test it with different input values (like a black-box test) but also ensure that the loop inside the method is executed the correct number of times for each input. For instance, input 5 should cause the loop to execute five times, multiplying the result by 2, 3, 4, and 5.

To have structural testing, the tools we use usually, include JaCoCo, Clover, or Cobertura. Here we choose JaCoCo.
Expand Down

0 comments on commit 85e1b1e

Please sign in to comment.