nutch
nutch copied to clipboard
NUTCH-2887 Migrate to JUnit 5 Jupiter
WIP to address https://issues.apache.org/jira/browse/NUTCH-2887
OK, I'm over the bulk of the work here. A brief synopsis of what has been done so far...
- new junit5 jupiter dependencies added to
ivy.xml - All assertions migrated to new
org.junit.jupiter.api.Assertionspackage - All annotations migrated to new
org.junit.jupiter.apipackage e.g.@Test @Beforeand@Afterno longer exist; migrated to@BeforeEachand@AfterEach@Ignoreno longer exists: migrated to@Disabledbut we should definitely review these cases and see if we can activate them
I think we may be able to improve test execution by investigate parallel execution but that will come in a subsequent PR
Additionally, loads of tests are failing right now due to my limited understanding of how to migrate from Ant's legacy junit task to the junit5 junitlauncher task.
I think one more push and this PR should be ready for review.