How do you measure code coverage & test well?
https://bit.ly/2OPrBS5
We saw last week: Testing is important
Improvements to our MVC app
Improving our app: Gradle
See the commit that adds gradle to MVCExample on github here
Improving our app: Gradle
See the commit that adds gradle to MVCExample on github here
Improving our app: JUnit
Code coverage
Code coverage 2: Tricksy students
Code coverage 3: How to actually do it
* - only “controller” classes, not model / view!
The model: Beans / POJO
Improving our tests with Mockito
There are a few problems with our existing test approach
Code coverage 4: See your code coverage