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

empty output and empty parallel-weights.json when tests complete #17

Closed
jcamden opened this issue Dec 9, 2020 · 2 comments
Closed

empty output and empty parallel-weights.json when tests complete #17

jcamden opened this issue Dec 9, 2020 · 2 comments

Comments

@jcamden
Copy link

jcamden commented Dec 9, 2020

Greetings, @tnicola!

I've set up these commands as per the README:

"cy:run": "cypress run",
"cy:parallel-local": "cypress-parallel -s cy:run -t 3 -d cypress/integration/test"

Relative to package.json, I have three spec files in cypress/integration/test. Running yarn cy:parallel-local starts up cypress-parallel. The tests then run invisibly. (I can see the activity hitting my API.) When the tests conclude, this is printed to the console:

Thread 0 time: 0s
Thread 1 time: 0s
Thread 2 time: 0s
┌─────────────────────────┬────────┬───────┬─────────┬─────────┬─────────┐
│ Spec                    │ Time   │ Tests │ Passing │ Failing │ Pending │
└─────────────────────────┴────────┴───────┴─────────┴─────────┴─────────┘
Generated file parallel-weights.json.

The parallel-weights.json file is just an empty object. I do get an .mp4 generated for each spec, and the results logged to Cypress Dashboard (if use the --record option). However, it seems that the tests are being run in serial and not in parallel. Running with Yarn 2. Let me know if you have any ideas! Thanks!

@jcamden jcamden changed the title spec files seemingly not detected (Yarn 2, Webpack 5, Typescript) empty output and empty parallel-weights.json when test complete Dec 10, 2020
@jcamden jcamden changed the title empty output and empty parallel-weights.json when test complete empty output and empty parallel-weights.json when tests complete Dec 10, 2020
@fearhq
Copy link

fearhq commented Feb 18, 2021

I had the same problem, figured out it was due to the custom mocha reporter sending out two back-to-back end suite events, causing two messages to be put on the command line. The parent reads these lines as one block, can't decode the json, and thus doesn't add the test results to the table. I've fixed it locally by excluding the event that doesn't have a filename. May submit a PR

@tnicola
Copy link
Owner

tnicola commented Dec 4, 2021

Shoud be fixed now!Check out the new version 0.6.0

@tnicola tnicola closed this as completed Dec 4, 2021
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

No branches or pull requests

3 participants