Skip to content

Commit 53e31f5

Browse files
committed
Some gradle tests which fail because errors are getting swallowed as lints.
1 parent d08f442 commit 53e31f5

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/BiomeIntegrationTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@
1919
import static org.junit.jupiter.api.Assertions.assertEquals;
2020
import static org.junit.jupiter.api.Assertions.assertTrue;
2121

22+
import org.junit.jupiter.api.Disabled;
2223
import org.junit.jupiter.api.Test;
2324
import org.owasp.encoder.Encode;
2425

26+
import com.diffplug.spotless.tag.ForLintRefactor;
27+
2528
class BiomeIntegrationTest extends GradleIntegrationHarness {
2629
/**
2730
* Tests that biome can be used as a JSON formatting step, using biome 1.8.3
@@ -373,6 +376,8 @@ void failureWhenExeNotFound() throws Exception {
373376
* @throws Exception When a test failure occurs.
374377
*/
375378
@Test
379+
@Disabled
380+
@ForLintRefactor
376381
void failureWhenNotParseable() throws Exception {
377382
setFile("build.gradle").toLines(
378383
"plugins {",

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/ErrorShouldRethrowTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ void passesIfNoException() throws Exception {
6262
}
6363

6464
@Test
65+
@Disabled
66+
@ForLintRefactor
6567
void anyExceptionShouldFail() throws Exception {
6668
writeBuild(
6769
" } // format",
@@ -111,6 +113,8 @@ void unlessExemptedByPath() throws Exception {
111113
}
112114

113115
@Test
116+
@Disabled
117+
@ForLintRefactor
114118
void failsIfNeitherStepNorFileExempted() throws Exception {
115119
writeBuild(
116120
" ignoreErrorForStep 'nope'",

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/KotlinExtensionTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020
import java.io.File;
2121
import java.io.IOException;
2222

23+
import org.junit.jupiter.api.Disabled;
2324
import org.junit.jupiter.api.Test;
2425

26+
import com.diffplug.spotless.tag.ForLintRefactor;
27+
2528
class KotlinExtensionTest extends GradleIntegrationHarness {
2629
private static final String HEADER = "// License Header";
2730
private static final String HEADER_WITH_YEAR = "// License Header $YEAR";
@@ -167,6 +170,8 @@ void testSetEditorConfigCanOverrideEditorConfigFile() throws IOException {
167170
}
168171

169172
@Test
173+
@Disabled
174+
@ForLintRefactor
170175
void withCustomRuleSetApply() throws IOException {
171176
setFile("build.gradle.kts").toLines(
172177
"plugins {",

0 commit comments

Comments
 (0)