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
Provide JUnit 5 alternative to XtextRunner #2883
Comments
No :) Thank you, I'll try using them! I guess this can be closed. |
@szarnekow , is there also a replacement for |
not to my knowledge. |
We didn’t think smoke testing was wildly used, so there is no JUnit5 based smoke test factory available yet. The tricky part was especially the isolation of the model recording injector and the actual language implementation. The extensible architecture of JUnit5 should certainly allow this but I don’t have a blue-print available. |
@szarnekow , what does the smoke test runner actually do? We have some 650 tests, of these only 4 calls to Am I seeing this right, that in our case we run a test suite with some extra validation when an exception of type |
The SmokeTestRunner alters the injector used to run the regular test class. As soon as a model is loaded, it's recorded by throwing a TestDataCarrier. Subsequently, additional validation can happen with that model, e.g. usually, the scenarios would create permutations of the tested model to run other services with these permutations. In your case, it's likely skipping the permutations that are available by default in favor of some custom logic. |
Using InjectionExtension.java works fine. Still in the process of replacing |
For our product, we have tests that use
XtextRunner
, which in turn uses JUnit 4:It would be nice to provide a replacement that uses JUnit 5, so migration from JUnit 4 to JUnit 5 is not hindered by tests for
xtext
functionality.XtextRunner
itself is used to inject classes:The text was updated successfully, but these errors were encountered: