question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid value [] supplied to /allFailures: Nil

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
davthucommented, Jun 26, 2018

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:

NOTE wdio-mochawesome-reporter is NOT compatible with the 3.x versions of the mochawesome-report-generator

2reactions
adamgrubercommented, Apr 24, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found