|
| 1 | +plugins { |
| 2 | + id("org.openrewrite.rewrite") |
| 3 | +} |
| 4 | + |
| 5 | +dependencies { |
| 6 | + rewrite("org.openrewrite.recipe:rewrite-migrate-java:3.22.0") |
| 7 | + rewrite("org.openrewrite.recipe:rewrite-static-analysis:2.22.0") |
| 8 | + rewrite("org.openrewrite.recipe:rewrite-testing-frameworks:3.22.0") |
| 9 | +} |
| 10 | + |
| 11 | +rewrite { |
| 12 | + activeRecipe("org.junit.openrewrite.SanityCheck") |
| 13 | + configFile = project.getRootProject().file("gradle/config/rewrite.yml") |
| 14 | + exclusion( |
| 15 | + // CommonStaticAnalysis: scope issue; CONSTRUCTOR_NOW_PROTECTED |
| 16 | + "**AggregatorIntegrationTests.java", |
| 17 | + "**AnnotationConsumerInitializerTests.java", |
| 18 | + "**HierarchicalTestEngine.java", |
| 19 | + "**TypeBasedParameterResolver.java", |
| 20 | + "**params/aggregator**", |
| 21 | + "**params/converter**", |
| 22 | + "**params/provider**", |
| 23 | + // dedicated might trivial issue. |
| 24 | + "**DiscoveryIssueNotifier.java", |
| 25 | + "**XmlReportWriter.java", |
| 26 | + // JupiterBestPractices: class scope issue; |
| 27 | + "**BeforeAndAfterSuiteTests.java", |
| 28 | + "**BridgeMethods.java", |
| 29 | + "**EngineDiscoveryResultValidatorTests.java", // fixable with @DisabledOnOs(WINDOWS) |
| 30 | + "**CsvArgumentsProvider.java", |
| 31 | + "**DefaultArgumentsAccessor.java", |
| 32 | + "**DiscoverySelectorResolverTests.java", |
| 33 | + "**DiscoveryTests.java", |
| 34 | + "**DisplayNameGenerationTests.java", |
| 35 | + "**DynamicNodeGenerationTests.java", |
| 36 | + "**DynamicTestTests.java", |
| 37 | + "**ExceptionHandlingTests.java", |
| 38 | + "**ExecutionCancellationTests.java", |
| 39 | + "**ExtensionRegistrationViaParametersAndFieldsTests.java", |
| 40 | + "**InvocationInterceptorTests.java", |
| 41 | + "**IsTestMethodTests.java", |
| 42 | + "**IsTestTemplateMethodTests.java", |
| 43 | + "**JupiterTestDescriptorTests.java", |
| 44 | + "**LifecycleMethodUtilsTests.java", |
| 45 | + "**MultipleTestableAnnotationsTests.java", |
| 46 | + "**NestedContainerEventConditionTests.java", |
| 47 | + "**ParallelExecutionIntegrationTests.java", |
| 48 | + "**ParameterResolverTests.java", |
| 49 | + "**ParameterizedTestIntegrationTests.java", |
| 50 | + "**RepeatedTestTests.java", |
| 51 | + "**StaticPackagePrivateBeforeMethod.java", |
| 52 | + "**SubclassedAssertionsTests.java", |
| 53 | + "**TempDirectoryCleanupTests.java", |
| 54 | + "**TestCase.java", |
| 55 | + "**TestCases.java", |
| 56 | + "**TestExecutionExceptionHandlerTests.java", |
| 57 | + "**TestInstanceFactoryTests.java", |
| 58 | + "**TestTemplateInvocationTestDescriptorTests.java", |
| 59 | + "**TestTemplateInvocationTests.java", |
| 60 | + "**TestTemplateTestDescriptorTests.java", |
| 61 | + "**TestWatcherTests.java", |
| 62 | + "**TimeoutExtensionTests.java", |
| 63 | + "**UniqueIdTrackingListenerIntegrationTests.java", |
| 64 | + "**WorkerThreadPoolHierarchicalTestExecutorServiceTests.java", |
| 65 | + "**org/junit/jupiter/engine/bridge**", |
| 66 | + // trivial import fix. |
| 67 | + "**Assert**AssertionsTests.java", |
| 68 | + "**DynamicContainerTests.java", |
| 69 | + // legacy |
| 70 | + "**documentation/src/test/java/example**", |
| 71 | + "**testFixtures/java/org/junit/vintage/engine/samples**", |
| 72 | + ) |
| 73 | + setExportDatatables(true) |
| 74 | + setFailOnDryRunResults(true) |
| 75 | +} |
0 commit comments