Skip to content

Add shed-tools test options#169

Open
selten wants to merge 3 commits intogalaxyproject:masterfrom
selten:testing-update
Open

Add shed-tools test options#169
selten wants to merge 3 commits intogalaxyproject:masterfrom
selten:testing-update

Conversation

@selten
Copy link

@selten selten commented Feb 13, 2021

  • Add option to cleanup the history after running the test
  • Add option to fail when an error is encounted for all shed-tools options.
    Solves part of Tool testing improvements #117

fail_on_error will allow ephemeris to be more easily integrated into CI/CD pipelines to automatically deploy new tool versions into Galaxy.
Copy link
Contributor

@rhpvorderman rhpvorderman left a comment

Choose a reason for hiding this comment

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

It looks good to me. Can you add a test for this behavior?


# Validate if all tools installed correctly
if args.fail_on_error and install_results and install_results.errored_repositories > 0:
log.info("The %s of a tool has failed. Exiting." % args.action)
Copy link
Contributor

Choose a reason for hiding this comment

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

log.error would be more appropriate.
Alternatively: since log + exit is usted. It may be better to use raise an error instead.

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