-
Notifications
You must be signed in to change notification settings - Fork 309
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
[ci-app] Add JUnit XML Report Upload #1367
[ci-app] Add JUnit XML Report Upload #1367
Conversation
fda5b49
to
ae170db
Compare
Codecov Report
@@ Coverage Diff @@
## master #1367 +/- ##
=======================================
Coverage 94.23% 94.23%
=======================================
Files 155 155
Lines 6265 6265
=======================================
Hits 5904 5904
Misses 361 361 Continue to review full report at Codecov.
|
.circleci/config.yml
Outdated
- run: | ||
name: Upload JUnit XML Report | ||
command: | | ||
if [ -n "$CIRCLE_PR_NUMBER" ]; then |
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.
return | ||
} | ||
if (process.env.CIRCLE_PR_NUMBER) { | ||
console.log('Running in a fork. Skipping step.') |
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.
package.json
Outdated
"codecov": "codecov" | ||
"codecov": "codecov", | ||
"junit:upload:ci": "node ./scripts/junit_report.js", | ||
"junit:upload": "datadog-ci junit upload --tags runtime.version:$CI_NODE_VERSION --service dd-trace-js-core-tests ./test-results.xml" |
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.
Where does datadog-ci
come from when running this if it's not in the dependencies?
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.
Also, what's the benefit of ever running this locally? Is there a way to differentiate between local and CI runs?
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.
yeah I'll just remove this and run it on the junit_report
script file
any other concern @rochdev ? |
What does this PR do?
Add a step to upload the jUnit XML report from core unit tests to Datadog.
Motivation