Automated 100 % test coverage
- Anand Nerurkar
- Oct 24, 2024
- 1 min read
We need to perform test covearage as a part of quality check for your artifacts - code so that we are sure that we are covering each scenario.
Creating test cases manually is time comsuming process and it may take more time that development, hence it impact developers productivity. To solve this issue , we can make use of plugin diffBlue to generate automated test cases for your code.
Here we will take below example where we have controller,service and repository layer and will cover test coverage for the same.
Assumption- IDE have difffblue plugin installed.
select controller package , select write test, will genearate test case for controller.
once test cases are written , you can see 100 % line coverage.
Comments