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

Add 'circleCIMode' option to include file attribute in each <testsuite> tag #170

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jpdillingham
Copy link

@jpdillingham jpdillingham commented May 18, 2022

Enables Circle CI to ingest test results and display a filename for each failing test.

With the attribute present, Circle CI displays:

image

With the attribute missing, Circle CI displays (ignore the different test, the filename is missing):

image

Circle CI documentation on this feature can be found here: https://circleci.com/docs/2.0/collect-test-data/

@@ -21,6 +21,7 @@ module.exports = function(stats, options) {
timestamp: "1970-01-01T00:00:00", // ISO timestamp truncated to the second
tests: "0",
failures: "0",
file: "spec.js",
Copy link
Author

Choose a reason for hiding this comment

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

note that the existing behavior passes through a file attribute for the root suite as is, but the mock result data didn't reflect it because the test setup doesn't set the file property on the root Mocha.Suite object

@sebastian-lerner
Copy link

@jpdillingham did you ever get any luck getting any traction on this?

@jpdillingham
Copy link
Author

We were using our internally forked version, here: https://github.com/latticehr/mocha-junit-reporter

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.

None yet

2 participants