File tree Expand file tree Collapse file tree 6 files changed +15
-15
lines changed
testlib/src/main/java/com/diffplug/spotless/tag Expand file tree Collapse file tree 6 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ apply plugin: 'com.adarshr.test-logger'
2
2
3
3
// See com.diffplug.spotless.tag package for available JUnit 5 @Tag annotations
4
4
def special = [
5
- ' Black ' ,
6
- ' Buf ' ,
7
- ' Clang ' ,
5
+ ' black ' ,
6
+ ' buf ' ,
7
+ ' clang ' ,
8
8
' gofmt' ,
9
- ' Npm ' ,
10
- ' Shfmt '
9
+ ' npm ' ,
10
+ ' shfmt '
11
11
]
12
12
13
13
boolean isCiServer = System . getenv(). containsKey(" CI" )
@@ -31,7 +31,7 @@ tasks.named('test').configure {
31
31
}
32
32
}
33
33
special. forEach { tag ->
34
- tasks. register(" test${ tag} " , Test ) {
34
+ tasks. register(" test${ tag.capitalize() } " , Test ) {
35
35
useJUnitPlatform { includeTags tag }
36
36
}
37
37
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2021 DiffPlug
2
+ * Copyright 2021-2024 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
26
26
27
27
@ Target ({TYPE , METHOD })
28
28
@ Retention (RUNTIME )
29
- @ Tag ("Black " )
29
+ @ Tag ("black " )
30
30
public @interface BlackTest {}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2022-2023 DiffPlug
2
+ * Copyright 2022-2024 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
26
26
27
27
@ Target ({TYPE , METHOD })
28
28
@ Retention (RUNTIME )
29
- @ Tag ("Buf " )
29
+ @ Tag ("buf " )
30
30
public @interface BufTest {}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2021 DiffPlug
2
+ * Copyright 2021-2024 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
26
26
27
27
@ Target ({TYPE , METHOD })
28
28
@ Retention (RUNTIME )
29
- @ Tag ("Clang " )
29
+ @ Tag ("clang " )
30
30
public @interface ClangTest {}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2021 DiffPlug
2
+ * Copyright 2021-2024 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
26
26
27
27
@ Target ({TYPE , METHOD })
28
28
@ Retention (RUNTIME )
29
- @ Tag ("Npm " )
29
+ @ Tag ("npm " )
30
30
public @interface NpmTest {}
Original file line number Diff line number Diff line change 26
26
27
27
@ Target ({TYPE , METHOD })
28
28
@ Retention (RUNTIME )
29
- @ Tag ("Shfmt " )
29
+ @ Tag ("shfmt " )
30
30
public @interface ShfmtTest {}
You can’t perform that action at this time.
0 commit comments