-
Notifications
You must be signed in to change notification settings - Fork 52
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
how do i use specmatic with quarkustest? #328
Comments
i got this error when trying `java.lang.AssertionError: Testing scenario "Open API - Operation Summary: Fetch product details. Response: OK"
|
@talelk Thanks for reporting the issue. To run Specmatic Specs as a Test inside your Java Codebase Specmatic leverages JUnit5. Please see documentation. I have not tested with Quarkus. However, I believe this should be agnostic to Framework. Do let us know if you run into issues. About the Error (Unresolved class: class java.lang.String) you have reported above, can you please share some more context on what you are trying to achieve and some sample snippet we can leverage to reproduce the issue? |
Hello @harikrishnan83. I joinded a quarkus-getting-started-testing sample project with specmatic integrated in it like described on the documentation. wen i ran a ./mvnw clean test, i expect to get the error message containing the reason of the failure, in the first test, i'm getting Unresolved class: class java.lang.String, i suspect QuarkusTest wrapper arount junit test to be responsible for this. Is there a way to use specmatic as a junit extension (@ExtendWith(SpecmaticExtension.class)) instead of extending the test class ? may be this can solve the problem. Thank you |
@talelk thanks for sharing the sample code. I see the "Unresolved class: class java.lang.String" error also. Not sure if the problem is because of project dependency setup or if it has to do with SpecmaticJunitSupport not being able to work with QuarkusTest. Will keep you posted on this thread when we pick up QuarkusTest support. Meanwhile if you are able to resolve the problem, please do raise a PR. |
do specmatic support quarkustest?
The text was updated successfully, but these errors were encountered: