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

Testsuite improvements - make the tests repeateable without clean task #27

Open
wants to merge 10 commits into
base: wf-to-eap
Choose a base branch
from

Conversation

TomasHofman
Copy link

@TomasHofman TomasHofman commented Nov 26, 2024

This is bit debatable "improvement", please close the PR if it doesn't suit you.

Currently some of the tests fail when they are run repeatedly without running the clean task. I.e. running following sequence will result in test failures:

mvn clean install
mvn test

The core reason usually is that by default the provisioning is terminated early, when the server directory already exists (from the previous test execution), and so the expected provisioning failure for instance is not triggered.

I set overwrite-provisioned-server to true in affected test pom files to enforce overriding the old installation. It could also be solved by cleaning the installation dir in some @ Before method.

Copy link
Member

@jamezp jamezp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seems fine to me. An alternative would be to delete the directory after the test runs.

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.

3 participants