-
-
Notifications
You must be signed in to change notification settings - Fork 783
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
Refactor tests in detekt-gradle-plugin #3333
Conversation
1. Moved data classes, DslGradleRunner, and DslTestBuilder under `testkit` 2. Updated because reason in build.gradle.kts 3. Inlined and updated the formatting version under test.
Codecov Report
@@ Coverage Diff @@
## master #3333 +/- ##
=========================================
Coverage 80.32% 80.32%
Complexity 2721 2721
=========================================
Files 445 445
Lines 8168 8168
Branches 1553 1553
=========================================
Hits 6561 6561
Misses 774 774
Partials 833 833 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
It will help if, the next time, you move files in one commit and refactor the file in another. This way we can review it commit by commit and see the actual changes in that file. Otherwise git says "this file was removed and this other was added".
Don't change it now! There's no need.
detekt-gradle-plugin/src/test/kotlin/io/gitlab/arturbosch/detekt/DetektTaskDslTest.kt
Outdated
Show resolved
Hide resolved
* Refactor tests in detekt-gradle-plugin 1. Moved data classes, DslGradleRunner, and DslTestBuilder under `testkit` 2. Updated because reason in build.gradle.kts 3. Inlined and updated the formatting version under test. * Improve constraint message and reduce visibility * Use the code generated `DEFAULT_DETEKT_VERSION`
* Refactor tests in detekt-gradle-plugin 1. Moved data classes, DslGradleRunner, and DslTestBuilder under `testkit` 2. Updated because reason in build.gradle.kts 3. Inlined and updated the formatting version under test. * Improve constraint message and reduce visibility * Use the code generated `DEFAULT_DETEKT_VERSION`
testkit