-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to JUnit5 #1186
Comments
Good idea! The only reason should be the amount of work :) |
Me too, it's not only part of the project but of the contributors. But in the end, even if we could keep it using the RC versions, using a JUnit extension means fewer dependencies and a framework more supported. And it's easier for contributors too. I see really no advantages in Arquillian.
The current PR aims for that, but there's the issue of Spock compatibility, newer versions have removed PS: btw, |
* Implement new Junit5 extensions: @AsciidoctorInstance & @ClasspathResource annotations available to inject Asciidoctor instances and resources into tests. * Update all modules to use JUnit5 and the new extensions 'asciidoctorj-wildfly-integration-test' remains on JUnit4 for Arquillian compatibility. Other changes: * Remove some uses of deprecated APIs * Fix typo in sample doc * Replace use of IOUtils.readFull(File) by Files.readString(Path) where possible to remove third-party dependencies. Closes asciidoctor#1186
* Implement new Junit5 extensions: @AsciidoctorInstance & @ClasspathResource annotations available to inject Asciidoctor instances and resources into tests. * Update all modules to use JUnit5 and the new extensions 'asciidoctorj-wildfly-integration-test' remains on JUnit4 for Arquillian compatibility. Other changes: * Remove some uses of deprecated APIs * Fix typo in sample doc * Replace use of IOUtils.readFull(File) by Files.readString(Path) where possible to remove third-party dependencies. Closes asciidoctor#1186
Trying to bump JUnit to v4 to JUnimake use of newer features I am finding road-blockers.
Normal JUnit4 and some Spock tests can make use of the vintage compatibility library, but those with Spock and Arquillian can't.
I see Arquillians hasn't made a proper release in a long time, and the latest Spock integration (
arquillian-spock-core
) is1.0.0.CR1
from Sept 2019, and is not compatible with newer Spock versions.Is there any reason no to start rewriting tests to remove Arquillian dependency? I am thinking of re-writing the features as a JUnit5 extension that should work.
I am planning to do this in 2 PRs:
Reimplement Arquillian features (Asciidoctor and ClasspathResource injection) as Junit 5 (anything else?), and rewrite testsWe could keep at the end, see Replace JUnit4 by JUnit5 #1192The text was updated successfully, but these errors were encountered: