-
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
Added Save in diktat smoke tests #1060
Conversation
### What's done: * added Save in diktat smoke tests Closes #1047
24815f4
to
7bbb809
Compare
Codecov Report
@@ Coverage Diff @@
## master #1060 +/- ##
=========================================
Coverage 83.43% 83.43%
Complexity 2447 2447
=========================================
Files 102 102
Lines 6120 6120
Branches 1832 1832
=========================================
Hits 5106 5106
Misses 272 272
Partials 742 742
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
...st-framework/src/main/kotlin/org/cqfn/diktat/test/framework/processing/TestComparatorUnit.kt
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,10 @@ | |||
[general] | |||
execCmd="./ktlint -R diktat-1.0.0-rc.2.jar" |
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.
I thought we were planning to execute SAVE in CI too?
### What's done: * added Save in diktat smoke tests Closes #1047
description = "SmokeTest" | ||
suiteName = "SmokeTest" | ||
|
||
[fix] |
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.
Shouldn't it be fix-and-warn
? We have some unfixed warnings in smoke tests
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.
Fixed
### What's done: * added Save in diktat smoke tests Closes #1047
fun compareFilesFromResources( | ||
expectedResult: String, | ||
testFileStr: String, | ||
smoke: Boolean = false): Boolean { |
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.
smoke: Boolean = false): Boolean { | |
trimLastEmptyLine: Boolean = false): Boolean { |
To make it look like a more general option
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.
Fixed
### What's done: * added Save in diktat smoke tests Closes #1047
val expectWithoutWarn = expect.filter { line -> | ||
!line.contains(regex) |
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.
val expectWithoutWarn = expect.filter { line -> | |
!line.contains(regex) | |
val expectWithoutWarn = expect.filterNot { line -> | |
line.contains(regex) |
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.
Fixed
### What's done: * added Save in diktat smoke tests Closes #1047
What's done: