0

I am trying to use mochawesome-report-generator to generate a standalone report, and here's my script to run it:

"generate-test-report":"marge ./mochawesome-report/mochawesome.json -i -f testReport"

The trouble is, I keep getting this error, trying for hours and cannot fix the problem:

Some files could not be processed:
./mochawesome-report/mochawesome.json
  Invalid value null supplied to /meta/marge/options: Object

The strange thing is that the mochawesome.json file is not NULL, it is the output of running:

"mocha test --reporter mochawesome"

And the mochawesome.html file (which is also created with the .json file) works fine. So I am assuming that the .json file is created correctly.

Why do I get that error? Thanks for your help!

(P.S. mochawesome.html can only be opened with dependencies, which is why I need that standalone report)

4

1 回答 1

0

所以,我想出了如何解决这个问题。为了让 mochawesome-report-generator 正常工作,请确保html=false在使用 mochawesome 时,只生成原始 json 文件。(但是,为什么会出现这种情况仍未解决)

于 2020-10-20T07:24:59.530 回答