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

feat(tests): repeat test script enhancements #1018

Merged
merged 4 commits into from
Jul 7, 2022

Conversation

andrewazores
Copy link
Member

Fixes #1017

  • feat(tests): allow MVN env var to override maven binary location
  • fix(tests): ensure log file directories and files are created and truncated
  • ensure tests are compiled before run
  • implement second arg as test selector

@andrewazores andrewazores added build feat New feature or request fix labels Jul 7, 2022
@andrewazores
Copy link
Member Author

andrewazores commented Jul 7, 2022

With this change you should be able to do ex.

$ mvn clean # simulate a freshly cloned repo - or actually freshly clone one
$ bash repeated-integration-tests.bash 2 ReportIT # run the ReportIT test only, and run it twice

similarly

$ bash repeated-unit-tests.bash 10 RecordingTargetHelperTest
$ bash repeated-unit-tests.bash 1 RecordingArchiveHelperTest,RecordingTargetHelperTest,*GetHandlerTest

Copy link
Member

@maxcao13 maxcao13 left a comment

Choose a reason for hiding this comment

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

Works well!

@andrewazores andrewazores merged commit d3f5e04 into cryostatio:main Jul 7, 2022
@andrewazores andrewazores deleted the integration-tests-script branch July 7, 2022 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build feat New feature or request fix
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Task] repeated-*-tests.bash scripts fail without manual build first
3 participants