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

Can not marge the mocha report which genrated in parallel test #384

Open
wenJanus opened this issue Oct 18, 2022 · 0 comments
Open

Can not marge the mocha report which genrated in parallel test #384

wenJanus opened this issue Oct 18, 2022 · 0 comments

Comments

@wenJanus
Copy link

wenJanus commented Oct 18, 2022

Describe the bug
A clear and concise description of what the bug is.
When marge the repot file which generate by parallel test output, show some error:
suites._timeout should be number
beforeHooks/0/pending: Boolean

Code Reproduce
Link to repo where the issue can reliably be reproduced:

Expected behavior
Run command line:
marge /project/reports/test/index.json --reportDir /project/reports/test --inline

Result:
18:04:17 + marge /project/reports/test/index.json --reportDir /project/reports/test --inline
18:04:17 Start to generate *** Test HTML Report.
18:04:17
18:04:17 ✘ Some files could not be processed:
18:04:17 /project/reports/test/index.json
18:04:17 Invalid value null supplied to /results/1/suites/0/_timeout: Number
18:04:17 Invalid value null supplied to /results/1/suites/0/beforeHooks/0/pending: Boolean
18:04:17 Invalid value null supplied to /results/1/suites/0/afterHooks/0/pending: Boolean
18:04:17 Invalid value null supplied to /results/1/suites/1/_timeout: Number
18:04:17 Invalid value null supplied to /results/1/suites/2/_timeout: Number

cat index.json | grep "_timeout"
"_timeout": 120000
"_timeout": 2000
"_timeout": null
"_timeout": null
"_timeout": null
"_timeout": null
"_timeout": null
"_timeout": null
"_timeout": null

cat index.json | grep "pending"
"pending": 0,
"pendingPercent": 0,
"pending": false,
"pending": false,
"pending": false,
"pending": false,
"pending": false,
"pending": [],
"pending": [],
"pending": null,
"pending": null,
"pending": false,
"pending": false,

Screenshots
If applicable, add screenshots to help explain your problem.
image

Environment (please complete the following information):

  • Platform: Linux, docker
  • mochawesome version: 7.1.3
  • mocha (or other test library) version: 8.3.0
  • Node version: >=12.17.0

Additional context
Add any other context about the problem here.

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

1 participant