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

Fix testing #7

Merged
merged 2 commits into from
Aug 21, 2023
Merged

Fix testing #7

merged 2 commits into from
Aug 21, 2023

Conversation

jmesnil
Copy link

@jmesnil jmesnil commented Aug 18, 2023

I reverted https://github.com/darranl/wildfly-archetypes/pull/5/files as the tests where failing:

[INFO] Error: Could not find or load main class ${server.jvm.args}
[INFO] Caused by: java.lang.ClassNotFoundException: ${server.jvm.args}
[INFO] [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.36 s <<< FAILURE! - in org.wildfly.examples.GettingStartedApplicationIT
[INFO] [ERROR] org.wildfly.examples.GettingStartedApplicationIT  Time elapsed: 0.36 s  <<< ERROR!
[INFO] org.jboss.arquillian.container.spi.client.container.LifecycleException: The java process starting the managed server exited unexpectedly with code [1]
[INFO]

The verify goal was missing from the failsafe configuration and Maven was not exiting with an error.

I also updated the Service test to use Arquillian to properly test the CDI bean.

The changes in arquillian.xml was making the test fails but this was not captured by the verify goal

Signed-off-by: Jeff Mesnil <jmesnil@redhat.com>
Signed-off-by: Jeff Mesnil <jmesnil@redhat.com>
@darranl darranl merged commit cc4c810 into darranl:WFLY-17651 Aug 21, 2023
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

Successfully merging this pull request may close these issues.

2 participants