This adds the relevant bits from the iteration template that tell Gradle to compute and check the Jacoco test coverage stats.
Jacoco won't let us exclude just a method from the test coverage stats; we have to exclude whole classes. It then seemed to make sense to pull the main() method out into a new Main class, and then exclude that class from the code coverage stats.
We then exclude Main.class since it's just the really simple main() method.
I updated the Markdown files to make sure that the they were up-to-date with the refactoring I did here. While I was there I got excited and made several other edits that really had nothing to do with this PR – sorry. :cry: If anyone wants me to separate them out, just say so.
This adds the relevant bits from the iteration template that tell Gradle to compute and check the Jacoco test coverage stats.
Jacoco won't let us exclude just a method from the test coverage stats; we have to exclude whole classes. It then seemed to make sense to pull the
main()
method out into a newMain
class, and then exclude that class from the code coverage stats.We then exclude
Main.class
since it's just the really simplemain()
method.I updated the Markdown files to make sure that the they were up-to-date with the refactoring I did here. While I was there I got excited and made several other edits that really had nothing to do with this PR – sorry. :cry: If anyone wants me to separate them out, just say so.
Closes #114