-
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
Add more integration tests to check Diktat compatibility with KtLint #1569
Comments
we need also test spotless maven plugin |
Sounds reasonable; our |
Depends on saveourtool/save-cli#521 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update: we already have Gradle plug-in tests available under
diktat-gradle-plugin/src/functionalTest/
,so the primary focus of this task is the Spotless plug-in (see below).
Diktat Gradle plug-in
Probably
DiktatJavaExecTaskTest
, feel free to suggest a different test class name../gradlew diktatCheck
) against invalid input should produce errors fromdiktat-ruleset
namespace.plain
reportersarif
reporterKtLint
-standard rules are indeed excluded, i. e. none of the errors from thestandard
orexperimental
namespaces are triggered by the invalid input (be sure to also disable the corresponding Diktat rules viadiktat-analysis.yml
). This test should fail if changes from Addexperimental
,test
, andcustom
to the list of ignored rule set ids #1568 are temporarily rolled back.Spotless Gradle plug-in
NoSuchMethodError: void KtLint$ExperimentalParams.<init>()
when runningspotlessCheck
orspotlessApply
#1559.plain
reportersarif
reporterBasically, we need a test which would, one way or another, launch a forked JVM against a test project, something we do in
DiktatSmokeTest
.At the same time, I'd vote against using
save-cli
for this purpose and instead look for smth similar to khmarbaise/maven-it-extension for JUnit 5, for two reasons:save-cli
takes a long time to download over a slow network,@petertrr, @nulls, WDYT?
The text was updated successfully, but these errors were encountered: