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'
22
33// See com.diffplug.spotless.tag package for available JUnit 5 @Tag annotations
44def 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
1313boolean isCiServer = System . getenv(). containsKey(" CI" )
@@ -31,7 +31,7 @@ tasks.named('test').configure {
3131 }
3232}
3333special. forEach { tag ->
34- tasks. register(" test${ tag} " , Test ) {
34+ tasks. register(" test${ tag.capitalize() } " , Test ) {
3535 useJUnitPlatform { includeTags tag }
3636 }
3737}
Original file line number Diff line number Diff line change 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.
2626
2727@ Target ({TYPE , METHOD })
2828@ Retention (RUNTIME )
29- @ Tag ("Black " )
29+ @ Tag ("black " )
3030public @interface BlackTest {}
Original file line number Diff line number Diff line change 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.
2626
2727@ Target ({TYPE , METHOD })
2828@ Retention (RUNTIME )
29- @ Tag ("Buf " )
29+ @ Tag ("buf " )
3030public @interface BufTest {}
Original file line number Diff line number Diff line change 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.
2626
2727@ Target ({TYPE , METHOD })
2828@ Retention (RUNTIME )
29- @ Tag ("Clang " )
29+ @ Tag ("clang " )
3030public @interface ClangTest {}
Original file line number Diff line number Diff line change 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.
2626
2727@ Target ({TYPE , METHOD })
2828@ Retention (RUNTIME )
29- @ Tag ("Npm " )
29+ @ Tag ("npm " )
3030public @interface NpmTest {}
Original file line number Diff line number Diff line change 2626
2727@ Target ({TYPE , METHOD })
2828@ Retention (RUNTIME )
29- @ Tag ("Shfmt " )
29+ @ Tag ("shfmt " )
3030public @interface ShfmtTest {}
You can’t perform that action at this time.
0 commit comments