Skip to content

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

Open
jpdillingham wants to merge 4 commits intomichaelleeallen:masterfrom
latticehr:jp/extended-properties
Open

Add 'circleCIMode' option to include file attribute in each <testsuite> tag#170
jpdillingham wants to merge 4 commits intomichaelleeallen:masterfrom
latticehr:jp/extended-properties

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/

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.

2 participants