Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify test coverage for 'csaccess' source set during build #301

Merged
merged 4 commits into from Apr 3, 2017

Conversation

tsjensen
Copy link
Contributor

@tsjensen tsjensen commented Apr 3, 2017

Here's a little PR for one of the To-Do comments in the build file, which was that we should verify test coverage for source files in the 'csaccess' source set during build. The rationale being that if only one call to the Checkstyle API remains uncovered, it may break the plugin with the next Checkstyle version.

I set the initial required coverage to our current coverage (which seems fine). It can be changed by modifying the MINIMUM_CSACCESS_COVERAGE constant.

This feature is made possible by the fact that Gradle decided to bring forward the feature originally planned for Gradle 4.0. Coverage verification is now possible starting with Gradle 3.4. I still had to upgrade from Gradle 3.2.1 which we were using.

Hope this helps!

@jshiell jshiell merged commit 861963e into jshiell:master Apr 3, 2017
@jshiell
Copy link
Owner

jshiell commented Apr 3, 2017

Awesome stuff as always - thank you!

@tsjensen tsjensen deleted the cov-check branch April 3, 2017 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants