-
Notifications
You must be signed in to change notification settings - Fork 5
Saving coverage data #12
Comments
@andrcuns This is how https://github.com/KnapsackPro/knapsack-pro-jest/blob/master/src/knapsack-pro-jest.ts#L40 const {
results: { success: isTestSuiteGreen, testResults },
} = await jest.runCLI(
{
...jestCLIOptions,
runTestsByPath: true,
_: testFilePaths,
},
[projectPath],
); How you generate a coverage report? Just with flag
Do you have any other ideas or suggestions on how to solve it? Thanks. |
Yeah, with
|
Regarding 2.
@deser proposed the idea to do it in Jest repo jestjs/jest#9492 Regarding 3.
I added to my backlog a task to work on Regular Mode for @andrcuns Can you share your solution on how to configure jest-junit reporter and link to the issue? I could update my documentation so other people looking for the same problem could use your tips. You can send me this over email https://knapsackpro.com/contact to keep this thread to one topic. Thank you. |
Note: Here is @andrcuns idea to generate unique report name for jest-junit jest-community/jest-junit#108 I guess we have 2 options:
|
I will try to implement a unique coverageDirectory as suggested here jestjs/jest#9492 (comment) |
I've released Here you can find an example of how to generate code coverage for Jest with Knapsack Pro Jest in Queue Mode: |
Hei,
Encountered one issue, any suggestions would be welcome.
We are running jest tests using the knapsack pro jest runner and we would like to get coverage data for those runs as well using jest coverage reporters.
The issue is that coverage reporter always saves data to a single file and because knapsack executes tests in multiple chunks, coverage data get overwritten and we end up only we the one from last chunk execution.
The text was updated successfully, but these errors were encountered: