-
Notifications
You must be signed in to change notification settings - Fork 39
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
Migrate diktat smoke tests to SAVE-cli mechanism #1388
Conversation
### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383
Codecov Report
@@ Coverage Diff @@
## master #1388 +/- ##
============================================
- Coverage 83.23% 82.62% -0.62%
+ Complexity 2562 2542 -20
============================================
Files 107 104 -3
Lines 7619 7472 -147
Branches 2103 2086 -17
============================================
- Hits 6342 6174 -168
- Misses 388 435 +47
+ Partials 889 863 -26
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383
Unit test for downloading of ktlint and putting diktat to a proper directory? |
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.
we need a unit test here
### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383
### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383
### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383
### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383
### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383
diktat-rules/src/test/kotlin/org/cqfn/diktat/util/FixTestBase.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/util/FixTestBase.kt
Outdated
Show resolved
Hide resolved
### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383
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.
@Cheshiriks please remove binaries from git, instead please either use an HTTP client in Java to download them before test or use maven plugin for downloading. Binaries should be placed in target
directory so that they won't show up in Git and could be cleaned up by maven clean
Haven't we decided that for now we will just put the Save in the project, and later we will do the download of the file? |
Having a 50MB file in git slows down every fetch operation :( We can add maven configuration later, but downloading from a JVM test seems to be easy enough to implement it right away |
### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383
Yes. Added |
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.
Please move function definitions to more appropriate places, but overall lgtm
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSmokeTestBase.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/util/FixTestBase.kt
Outdated
Show resolved
Hide resolved
# Conflicts: # diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSmokeTest.kt
### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt
Fixed
Show fixed
Hide fixed
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/indentation/Checkers.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/util/FixTestBase.kt
Outdated
Show resolved
Hide resolved
### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383
What's done:
Closes Migrate diktat smoke tests to SAVE-cli mechanism #1383