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

Refactor integration test for detekt-gradle-plugin #3356

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

chao2zhang
Copy link
Member

@chao2zhang chao2zhang commented Jan 6, 2021

This addresses #3324 by creating a different sourceSet/configuration to run integration tests using Gradle Testkit.
Note that DetektPluginTest.kt remains in the test set, as it is testing against Gradle API, not Gradle Testkit.

Gradle documentation on test kit: https://docs.gradle.org/current/userguide/test_kit.html

@codecov
Copy link

codecov bot commented Jan 6, 2021

Codecov Report

Merging #3356 (1d5752d) into master (a17e332) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #3356   +/-   ##
=========================================
  Coverage     80.27%   80.27%           
  Complexity     2717     2717           
=========================================
  Files           445      445           
  Lines          8238     8238           
  Branches       1563     1563           
=========================================
  Hits           6613     6613           
  Misses          785      785           
  Partials        840      840           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a17e332...ee727f5. Read the comment docs.

@chao2zhang chao2zhang changed the title Create integration source set for detekt-gradle-plugin Refactor integration test for detekt-gradle-plugin Jan 6, 2021
@chao2zhang chao2zhang force-pushed the integ-gradle-plugin-test branch 2 times, most recently from 4f2ebb1 to 0af3381 Compare January 6, 2021 18:52
@chao2zhang chao2zhang marked this pull request as ready for review January 6, 2021 19:24
@schalkms schalkms merged commit a778c44 into detekt:master Jan 8, 2021
@chao2zhang chao2zhang deleted the integ-gradle-plugin-test branch January 13, 2021 04:07
@arturbosch arturbosch added this to the 1.16.0 milestone Jan 18, 2021
@arturbosch arturbosch added the housekeeping Marker for housekeeping tasks and refactorings label Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Marker for housekeeping tasks and refactorings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants