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

Add default classpath to enable type resolution #154

Merged
merged 2 commits into from
Aug 11, 2022

Conversation

sesigl
Copy link

@sesigl sesigl commented Jul 23, 2022

No description provided.

@@ -15,18 +16,29 @@ import java.nio.file.Paths
threadSafe = true,
requiresDependencyCollection = ResolutionScope.TEST)
class CheckMojo : DetektMojo() {
lateinit var cliArgs: CliArgs
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set to a field for testing purposes. Maybe there is another smart idea of how we can assert the expected outcome.

class CheckMojoSpec : Spek({
val invalidPackageNamingDirectoryPath by lazy {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracted a test factors to separate concerns, reduce duplication and improve readability

@@ -0,0 +1 @@
package `code-samples`.`valid`
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created a valid input to execute a full testrun. Maybe this is not necessary - not sure.

@codecov-commenter
Copy link

Codecov Report

Merging #154 (6740e88) into main (bef69c2) will increase coverage by 0.16%.
The diff coverage is 57.14%.

@@             Coverage Diff              @@
##               main     #154      +/-   ##
============================================
+ Coverage     75.17%   75.33%   +0.16%     
- Complexity       22       31       +9     
============================================
  Files             8        8              
  Lines           145      150       +5     
  Branches         37       38       +1     
============================================
+ Hits            109      113       +4     
+ Misses           12       11       -1     
- Partials         24       26       +2     
Impacted Files Coverage Δ
src/main/java/com/github/ozsie/CheckMojo.kt 85.00% <57.14%> (-8.34%) ⬇️
src/main/java/com/github/ozsie/DetektMojo.kt 70.37% <0.00%> (+1.85%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Ozsie Ozsie merged commit 3f739b8 into Ozsie:main Aug 11, 2022
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

3 participants