Skip to content

Commit 6016e40

Browse files
author
Vincent Potucek
committed
Add JupiterBestPractices junit-team#5193 junit-team#5002
- https://docs.openrewrite.org/recipes/java/testing/junit/jupiterbestpractices Signed-off-by: Vincent Potucek <vpotucek@me.com>
1 parent 5f027a5 commit 6016e40

1 file changed

Lines changed: 38 additions & 41 deletions

File tree

gradle/plugins/common/src/main/kotlin/junitbuild.rewrite-conventions.gradle.kts

Lines changed: 38 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,44 @@ rewrite {
1111
configFile = project.getRootProject().file("gradle/config/rewrite.yml")
1212
exclusion(
1313
// JupiterBestPractices: class scope issue;
14-
"**AggregatorIntegrationTests.java",
15-
"**BeforeAndAfterSuiteTests.java",
16-
"**BridgeMethods.java",
17-
"**CsvArgumentsProvider.java",
18-
"**DefaultArgumentsAccessor.java",
19-
"**DiscoverySelectorResolverTests.java",
20-
"**DiscoveryTests.java",
21-
"**DisplayNameGenerationTests.java",
22-
"**DynamicNodeGenerationTests.java",
23-
"**DynamicTestTests.java",
24-
"**EngineDiscoveryResultValidatorTests.java", // fixable with @DisabledOnOs(WINDOWS)
25-
"**ExceptionHandlingTests.java",
26-
"**ExecutionCancellationTests.java",
27-
"**ExtensionRegistrationViaParametersAndFieldsTests.java",
28-
"**InvocationInterceptorTests.java",
29-
"**IsTestMethodTests.java",
30-
"**IsTestTemplateMethodTests.java",
31-
"**JupiterTestDescriptorTests.java",
32-
"**LifecycleMethodUtilsTests.java",
33-
"**MultipleTestableAnnotationsTests.java",
34-
"**NestedContainerEventConditionTests.java",
35-
"**ParallelExecutionIntegrationTests.java",
36-
"**ParameterResolverTests.java",
37-
"**ParameterizedTestIntegrationTests.java",
38-
"**RepeatedTestTests.java",
39-
"**StaticPackagePrivateBeforeMethod.java",
40-
"**SubclassedAssertionsTests.java",
41-
"**TempDirectoryCleanupTests.java",
42-
"**TestExecutionExceptionHandlerTests.java",
43-
"**TestInstanceFactoryTests.java",
44-
"**TestTemplateInvocationTestDescriptorTests.java",
45-
"**TestTemplateInvocationTests.java",
46-
"**TestTemplateTestDescriptorTests.java",
47-
"**TestWatcherTests.java",
48-
"**TimeoutExtensionTests.java",
49-
"**UniqueIdTrackingListenerIntegrationTests.java",
50-
"**WorkerThreadPoolHierarchicalTestExecutorServiceTests.java",
51-
"**org/junit/jupiter/engine/bridge**",
52-
// trivial import fix.
53-
"**Assert**AssertionsTests.java",
54-
"**DynamicContainerTests.java",
14+
// "**AggregatorIntegrationTests.java",
15+
// "**BeforeAndAfterSuiteTests.java",
16+
// "**BridgeMethods.java",
17+
// "**CsvArgumentsProvider.java",
18+
// "**DefaultArgumentsAccessor.java",
19+
// "**DiscoverySelectorResolverTests.java",
20+
// "**DiscoveryTests.java",
21+
// "**DisplayNameGenerationTests.java",
22+
// "**DynamicNodeGenerationTests.java",
23+
// "**DynamicTestTests.java",
24+
// "**EngineDiscoveryResultValidatorTests.java", // fixable with @DisabledOnOs(WINDOWS)
25+
// "**ExceptionHandlingTests.java",
26+
// "**ExecutionCancellationTests.java",
27+
// "**ExtensionRegistrationViaParametersAndFieldsTests.java",
28+
// "**InvocationInterceptorTests.java",
29+
// "**IsTestMethodTests.java",
30+
// "**IsTestTemplateMethodTests.java",
31+
// "**JupiterTestDescriptorTests.java",
32+
// "**LifecycleMethodUtilsTests.java",
33+
// "**MultipleTestableAnnotationsTests.java",
34+
// "**NestedContainerEventConditionTests.java",
35+
// "**ParallelExecutionIntegrationTests.java",
36+
// "**ParameterResolverTests.java",
37+
// "**ParameterizedTestIntegrationTests.java",
38+
// "**RepeatedTestTests.java",
39+
// "**StaticPackagePrivateBeforeMethod.java",
40+
// "**SubclassedAssertionsTests.java",
41+
// "**TempDirectoryCleanupTests.java",
42+
// "**TestExecutionExceptionHandlerTests.java",
43+
// "**TestInstanceFactoryTests.java",
44+
// "**TestTemplateInvocationTestDescriptorTests.java",
45+
// "**TestTemplateInvocationTests.java",
46+
// "**TestTemplateTestDescriptorTests.java",
47+
// "**TestWatcherTests.java",
48+
// "**TimeoutExtensionTests.java",
49+
// "**UniqueIdTrackingListenerIntegrationTests.java",
50+
// "**WorkerThreadPoolHierarchicalTestExecutorServiceTests.java",
51+
// "**org/junit/jupiter/engine/bridge**",
5552
// legacy
5653
"**TestCase.java",
5754
"**TestCases.java",

0 commit comments

Comments
 (0)