Skip to content

Commit 5833a2b

Browse files
committed
Our special tests got into a terrible state where some were capitalized and others weren't. They shold all be the same.
1 parent 14204e4 commit 5833a2b

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

gradle/special-tests.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ apply plugin: 'com.adarshr.test-logger'
22

33
// See com.diffplug.spotless.tag package for available JUnit 5 @Tag annotations
44
def special = [
5-
'Black',
6-
'Buf',
7-
'Clang',
5+
'black',
6+
'buf',
7+
'clang',
88
'gofmt',
9-
'Npm',
10-
'Shfmt'
9+
'npm',
10+
'shfmt'
1111
]
1212

1313
boolean isCiServer = System.getenv().containsKey("CI")
@@ -31,7 +31,7 @@ tasks.named('test').configure {
3131
}
3232
}
3333
special.forEach { tag ->
34-
tasks.register("test${tag}", Test) {
34+
tasks.register("test${tag.capitalize()}", Test) {
3535
useJUnitPlatform { includeTags tag }
3636
}
3737
}

testlib/src/main/java/com/diffplug/spotless/tag/BlackTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 DiffPlug
2+
* Copyright 2021-2024 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,5 +26,5 @@
2626

2727
@Target({TYPE, METHOD})
2828
@Retention(RUNTIME)
29-
@Tag("Black")
29+
@Tag("black")
3030
public @interface BlackTest {}

testlib/src/main/java/com/diffplug/spotless/tag/BufTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 DiffPlug
2+
* Copyright 2022-2024 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,5 +26,5 @@
2626

2727
@Target({TYPE, METHOD})
2828
@Retention(RUNTIME)
29-
@Tag("Buf")
29+
@Tag("buf")
3030
public @interface BufTest {}

testlib/src/main/java/com/diffplug/spotless/tag/ClangTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 DiffPlug
2+
* Copyright 2021-2024 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,5 +26,5 @@
2626

2727
@Target({TYPE, METHOD})
2828
@Retention(RUNTIME)
29-
@Tag("Clang")
29+
@Tag("clang")
3030
public @interface ClangTest {}

testlib/src/main/java/com/diffplug/spotless/tag/NpmTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 DiffPlug
2+
* Copyright 2021-2024 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,5 +26,5 @@
2626

2727
@Target({TYPE, METHOD})
2828
@Retention(RUNTIME)
29-
@Tag("Npm")
29+
@Tag("npm")
3030
public @interface NpmTest {}

testlib/src/main/java/com/diffplug/spotless/tag/ShfmtTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626

2727
@Target({TYPE, METHOD})
2828
@Retention(RUNTIME)
29-
@Tag("Shfmt")
29+
@Tag("shfmt")
3030
public @interface ShfmtTest {}

0 commit comments

Comments
 (0)