-
Notifications
You must be signed in to change notification settings - Fork 181
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
ConsolidateAll does not consolidate test results of several test suites #149
Comments
I've never used jest, so I'm not sure if there's something environmental going on there—I may take a stab at setting it up just to try. To see if there was some obviously broken behavior locally, I tried the following using
/* global jasmine */
var JUnitXmlReporter = require('../..').JUnitXmlReporter;
jasmine.getEnv().addReporter(new JUnitXmlReporter({
savePath: '',
consolidateAll: true,
})); At this point I suspect something jest-specific, but as I have not used jest before I have not confirmed that yet. |
Can you confirm the behavior still exists for you with v2.2.0 of jasmine-reporters? |
I verified the behavior with v.2.2.0 and simplified project. |
Jest may run your tests using a worker farm of isolated Node processes. This means each instance will write to the same XML file and clobber your other results. |
Same issue here with 2.2.0. Did anyone find a solution to this yet? |
From the Jest troubleshooting guide:
As suspected above, default Jest behavior appears to be to run tests in parallel using separate node processes. Each process fires up jasmine to run some tests and attaches jasmine-reporters, each process writes to the same file, and your tests get overwritten. You could try running jest with the If One simple way of doing this is to provide a |
I tried --runInBand and it doesnt appear to stop the results from each suite over-writing each other. I can see the file size growing and shrinking as the tests run. Its always the last test that gets persisted to the file in the end. If you set the |
I'm running into the same issue using protractor and grunt-protractor-runner. If I use |
Same problem here. |
same here |
Hi, ditto to all the above and i'm using v4.1.1. |
the same issue in [email protected] and [email protected] |
Still seeing same issue in [email protected] and [email protected]. Is there any plans to fix this issue? |
Same here |
Still seeing same issue in [email protected] and [email protected] |
Please consider creating a pull request that addresses the issue encountered when used in these configurations within Jest, Protractor, etc. My time to support this project is greatly reduced from years past. As such, it is unlikely I will find time to investigate and fix this issue myself in the near future, but I'd be very happy to include a fix if someone is able to figure out a good solution that can be shared with the community. |
I'm running jasmine-reporters with jest - want to create a JUnit XML file that contains all test results for further usage in CI. So I have the configuration like below
Package.json - dependencies:
Package.json - configuration:
setup-jasmine-env:
When I run
jest
, test run successfully excepting the fact that consolidateAll does not work - at least not as I expected. My expectation was that the single XML file will be created for all my tests suites (each suite is a single test file with single "describe" and with several "it", in my case). In fact the XML report only contains the results of the latest test suite in the run, i.e. the file is recreated for each test suite.I'm a beginner in client-side programming so it may easily be my fault in understanding or configuration; I beg a pardon in advance, if so.
Thanks!
The text was updated successfully, but these errors were encountered: