Invalid value [] supplied to /allFailures: Nil
See original GitHub issueHi, reporters: [‘mochawesome’], reporterOptions: { outputDir: test
The script produces a wdiomochawesome.json report file under xx output dir. The outcome of the format is as below.
Invalid value { “title”: “sometitle”", “fullTitle”: “I am logged in as some one”, “timedOut”: false, “duration”: 0, “speed”: “fast”, “pass”: true, “fail”: false, “pending”: false, “code”: “”, “isRoot”: false, “uuid”: “something”, “parentUUID”: “something”, “skipped”: false, “isHook”: false, “context”: “[{something}]”, “state”: “passed”, “err”: {} } supplied to /suites/suites/0/passes/10: String Invalid value true supplied to /suites/suites/0/hasTests: Nil Invalid value false supplied to /suites/suites/0/hasSuites: Nil Invalid value 11 supplied to /suites/suites/0/totalTests: Nil Invalid value 11 supplied to /suites/suites/0/totalPasses: Nil Invalid value 0 supplied to /suites/suites/0/totalFailures: Nil Invalid value 0 supplied to /suites/suites/0/totalPending: Nil Invalid value 0 supplied to /suites/suites/0/totalSkipped: Nil Invalid value true supplied to /suites/suites/0/hasPasses: Nil Invalid value false supplied to /suites/suites/0/hasFailures: Nil Invalid value false supplied to /suites/suites/0/hasPending: Nil Invalid value false supplied to /suites/suites/0/hasSkipped: Nil Invalid value false supplied to /suites/suites/0/hasBeforeHooks: Nil Invalid value false supplied to /suites/suites/0/hasAfterHooks: Nil Invalid value false supplied to /suites/hasTests: Nil Invalid value true supplied to /suites/hasSuites: Nil Invalid value 0 supplied to /suites/totalTests: Nil Invalid value 0 supplied to /suites/totalPasses: Nil Invalid value 0 supplied to /suites/totalFailures: Nil Invalid value 0 supplied to /suites/totalPending: Nil Invalid value 0 supplied to /suites/totalSkipped: Nil Invalid value false supplied to /suites/hasPasses: Nil Invalid value false supplied to /suites/hasFailures: Nil Invalid value false supplied to /suites/hasPending: Nil Invalid value false supplied to /suites/hasSkipped: Nil Invalid value false supplied to /suites/hasBeforeHooks: Nil Invalid value false supplied to /suites/hasAfterHooks: Nil Invalid value [ { } ] supplied to /allPasses: Nil Invalid value [] supplied to /allFailures: Nil
Now when i produce the Mochawesomereport using the command “marge path xx/filename.json” within package.json it ends up without the Mochawesomereport file. Any suggestion?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xxxx@1.1 test:generateMochawesomereport: marge test/wdiomochaw esome.json
npm ERR! Exit status 1
npm ERR! xxxx@1.1 test:generateMochawesomereport: marge test esome.json
npm ERR! Exit status 1
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Checking for nil in view in Ruby on Rails - Stack Overflow
By checking for nil values I'm hoping to sidestep that and have my views gracefully handle the problem. The thing is though I...
Read more >Kubernetes Error Codes: Field Is Immutable | Datree.io
In several cases, the `Field is Immutable` error is encountered when a cluster administrator is trying to update previously deployed resources.
Read more >Common Errors - Amazon Simple Queue Service
An invalid or out-of-range value was supplied for the input parameter. HTTP Status Code: 400. InvalidQueryParameter. The AWS query string is malformed or ......
Read more >class Nil - Raku Documentation
The value Nil may be used to fill a spot where a value would normally go, and in so doing, explicitly indicate that...
Read more >Getting errors with null fields - Power Automate | Microsoft Learn
The provided value is of type 'Null'. Screenshot of the invalid template runtime error. Cause. If a flow runs with a null field,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the same issue when using the generator with wdio-mochawesome-reporter until i found out that the reporter only supports version 2.3.2:
This is a validation error in the JSON. It comes from a mismatch between the version of mochawesome that created the JSON output and the version of mochawesome-report-generator (marge) that you are using to create the report HTML. Be sure that you are using version 3.X of both for compatibility.