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

CLI Should Fail with Non-Zero Exit Code on TX Test Errors #200

Open
alexanderkiel opened this issue Dec 30, 2024 · 1 comment
Open

CLI Should Fail with Non-Zero Exit Code on TX Test Errors #200

alexanderkiel opened this issue Dec 30, 2024 · 1 comment

Comments

@alexanderkiel
Copy link

If I use the CLI to run Terminology Service Tests and they fail, the exit code of the CLI is still zero. Using this setup in CI will not fail my tests automatically. So I have to parse the output. It would be good if the CLI could exit with a non zero code.

Example command line:

java -jar validator_cli.jar -txTests -version 4.0.1 \
  -tx http://localhost:8080/fhir \
  -source fhir-tx-ecosystem-ig/tests
@alexanderkiel
Copy link
Author

In case my terminology service passes filtered test's like with -filter simple-expand, the validator exists with code 1. So the behaviour is exactly the opposite as expected.

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

No branches or pull requests

1 participant