-
Notifications
You must be signed in to change notification settings - Fork 42
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: add junit reporter #235
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪 |
@@ -33,6 +38,10 @@ program | |||
.option('-s, --suite-params <jsonstring>', 'Variables', '{}') | |||
.option('-e, --environment <envname>', 'e.g. production', 'development') | |||
.option('-j, --json', 'output newline delimited JSON') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will remove --json
in next major. We can start using --reporter json
from heartbeat
@@ -1,5 +1,5 @@ | |||
#!/usr/bin/env bash | |||
set -xe | |||
set -e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
less verbose output
@@ -28,7 +28,7 @@ services: | |||
- elasticsearch | |||
- synthetic | |||
healthcheck: | |||
test: ["CMD", "curl", "-f", "http://localhost:5601/api/status"] | |||
test: ["CMD", "curl", "-s", "-f", "http://localhost:5601/api/status"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
less verbose output when running docker inspect
to debug what's going on
@@ -1,5 +1,5 @@ | |||
#!/usr/bin/env bash | |||
set -xe | |||
set -eo pipefail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Populate the error when using pipes
@@ -14,7 +14,7 @@ fi | |||
################################################## | |||
echo "" # newline | |||
echo "${bold}Waiting for synthetics docker to start...${normal}" | |||
until [ "$(docker inspect -f {{.State.Running}} synthetics)" == "true" ]; do | |||
until [ "$(docker inspect -f '{{.State.Running}}' synthetics)" == "true" ]; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cosmetic
__tests__/e2e/scripts/test.sh
Outdated
@@ -23,5 +23,13 @@ echo "✅ Setup completed successfully. Running e2e tests..." | |||
# | |||
# run e2e tests journey | |||
################################################## | |||
set +e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enable error to trap the errorlevel to manipulate the junit report
This could be moved to the reporter junit but while it's not there this is the approach to run this in the CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Great work !!
@v1v Do you want to make any further changes to the PR? Otherwise, I will go ahead and merge this and create a new release. |
reporter flag
from CLI