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

Logger doesn't work for parallel test runs #1053

Open
cjol opened this issue Jun 24, 2024 · 2 comments
Open

Logger doesn't work for parallel test runs #1053

cjol opened this issue Jun 24, 2024 · 2 comments
Assignees
Labels
bug something isn't working priority medium reporting reports, public, private, sharing test run, test report, results, test data
Milestone

Comments

@cjol
Copy link

cjol commented Jun 24, 2024

Describe the bug
When tests are executed in parallel, the logging section disappears completely.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the mocha example repo
  2. Run the example tests in parallel with npm run tests -- --parallel --jobs=2
  3. Click on the report URL, and observe that the report for "logs should be added to the testomatio report" has no logs attached
image

Expected behavior
Logs should be displayed on the test run (as they are if the parallelism is disabled)

Additional context
I assume that the test log capture is based on timing which might make it too difficult to capture logs and associate the correct test. If that's the case, and running tests in parallel is not supported, then the documentation should be updated to reflect this.

@cjol cjol added the bug something isn't working label Jun 24, 2024
@poliarush
Copy link
Collaborator

@cjol
Copy link
Author

cjol commented Jun 24, 2024

Thanks for the link, I did not see that at first. However it seems to describe a different problem "you might end with multiple reports per each executed process".

Just in case, I have tried "Strategy 2" as described in that document, but that makes no difference to the outcome.

TESTOMATIO_SHARED_RUN=1 TESTOMATIO_TITLE="UniqTitleForThisBuild" npm test -- --parallel --jobs=5
image

@poliarush poliarush added this to the 0.5.35 milestone Jun 24, 2024
@poliarush poliarush added the reporting reports, public, private, sharing test run, test report, results, test data label Jun 24, 2024
@DavertMik DavertMik modified the milestones: 0.5.35, 0.5.36 Jun 27, 2024
@DavertMik DavertMik assigned AZANIR and unassigned DavertMik Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working priority medium reporting reports, public, private, sharing test run, test report, results, test data
Projects
None yet
Development

No branches or pull requests

4 participants