Skip to content
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

NoSQL Unit is not compatible with JUnit 5 #175

Open
ldreux opened this issue Sep 26, 2017 · 7 comments
Open

NoSQL Unit is not compatible with JUnit 5 #175

ldreux opened this issue Sep 26, 2017 · 7 comments

Comments

@ldreux
Copy link

ldreux commented Sep 26, 2017

JUnit 5 is released since September 10, 2017. @rule are not supported any more so NoSQL is not compatible with JUnit 5.

@lordofthejars
Copy link
Owner

Actually you can use legacy modules in JUnit5 to run with @Rules but in next days I will try to spike something.

@jfcorugedo
Copy link

Is there any new?

I really like this module, but JUnit 5 no longer supports @rule (what is a mess). Is there any plan to create an extension or something to make it work?

@lordofthejars
Copy link
Owner

I'd like to do it but currently no time, but any PR would e more than welcome, it should not be hard at all, since all the logic is placed ina single class.

@vrustia-owens
Copy link

Same here, this would greatly aligned with our spring boot 2 and junit5 conventions.

I would try to see if I can do this code when there's time and send a PR.

@JiangJungle
Copy link

I'm looking forward to using NoSQLUnit on junit5.I upgraded the version of junit, but I found that nosqlunit and junit5 are not compatible.

@roltean
Copy link

roltean commented Feb 14, 2020

Any updates on this? It's been almost a year now since the issue was raised. I've just discovered this library and was anxious to try it. Wasted a few hours trying to figure out why it's not working with Spring Boot 2, only to find this thread that confirms what I had suspected.

@lordofthejars
Copy link
Owner

Currently, I m super busy and I cannot spend so much time on this migration, but it should be possible by creating a new module and reimplementing this class https://github.com/lordofthejars/nosql-unit/blob/master/nosqlunit-core/src/main/java/com/lordofthejars/nosqlunit/core/AbstractNoSqlTestRule.java to JUnit5. PRs are always welcome, reviewed and released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants