-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate diktat smoke tests to SAVE-cli mechanism
### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383
- Loading branch information
1 parent
9e12cdf
commit 3c2a4e4
Showing
5 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
[general] | ||
execCmd="java -jar ktlint-snap.jar -R diktat-1.0.0-rc.2.jar" | ||
execCmd="java -jar ktlint -R diktat-1.1.0.jar" | ||
tags = ["smokeTest"] | ||
description = "SmokeTest" | ||
suiteName = "SmokeTest" | ||
language = "Kotlin" | ||
expectedWarningsPattern = "// ;warn:?(.*):(\\d*): (.+)" | ||
|
||
[fix] | ||
execFlags="--disabled_rules 'standard' -F" | ||
["fix and warn"] | ||
["fix and warn".fix] | ||
execFlags="--disabled_rules=standard -F" | ||
["fix and warn".warn] | ||
actualWarningsPattern = "(\\w+\\..+):(\\d+):(\\d+): (\\[.*\\].*)$" |
14 changes: 7 additions & 7 deletions
14
diktat-rules/src/test/resources/test/smoke/src/main/kotlin/Bug1Expected.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
diktat-rules/src/test/resources/test/smoke/src/main/kotlin/DefaultPackageExpected.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
diktat-rules/src/test/resources/test/smoke/src/main/kotlin/Example1Expected.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters