Comments (9)
Fixed with mochawesome-report-generator 3.1.5
from mochawesome-report-generator.
So, why is this issue closed? mochawesome
does not put the timedOut
property into JSON, when marge
expects it to be present.
from mochawesome-report-generator.
The timedOut
property doesn't come from mochawesome
, it comes from mocha
. See here. The problem is that the test object generated by Cypress does not have a timedOut
property.
Unfortunately I keep running into scenarios like this. The reporter was initially designed to work only with mocha and is based off of the test object that mocha generates. However there are other libraries that use mocha under the hood so the reporter is compatible but can exhibit unexpected behavior like this.
The JSON validation was put in place to ensure that marge
can successfully generate an HTML report without errors or unexpected rendering since you can pass whatever JSON you want to the cli.
Looking closer, the generated HTML report currently doesn't use the timedOut
property so I may just relax the validation for this property.
from mochawesome-report-generator.
Had to add the line
"timedOut": false,
To the test. Still make no sense why it would fail while it works using mochawesome
from mochawesome-report-generator.
When you use mochawesome to create the report, it does not validate the JSON data because it assumes that the reporter will provide valid data. However, when you use marge
CLI the JSON goes through a validation process to ensure the data has the correct structure since there is no knowing where it came from. That's why you got the error you did.
from mochawesome-report-generator.
To give you more context, I'm merging multiple JSON reports generated by mochawesome
and then feed the result to marge
.
Due to the issue with timedOut
property, I'm limited to use the JavaScript API while using CLI would have been simpler.
from mochawesome-report-generator.
I'm running into this same problem when running from the CLI. It would be nice if this could be reopened, the problem clearly isn't solved.
from mochawesome-report-generator.
Awesome, thanks a bunch!
from mochawesome-report-generator.
it didnt fix for me @adamgruber
Invalid value null supplied to /stats/passPercent: Number Invalid value null supplied to /stats/pendingPercent: Number Invalid value undefined supplied to /stats/passPercentClass: PercentClass Invalid value undefined supplied to /stats/pendingPercentClass: PercentClass Invalid value undefined supplied to /suites: Suite Invalid value undefined supplied to /copyrightYear: Number
from mochawesome-report-generator.
Related Issues (20)
- Feature: Statistics on suite
- Snapshots stopped showing up on reports after upgrade to v6.0.1 HOT 1
- Add option to avoid use of custom fonts (assets) HOT 1
- How can I get the title of my spec file/describe as my HTML report file namne HOT 5
- Unlimit mochawesome report files above 1000 and rename them HOT 1
- .html extension duplication in 6.1.0 HOT 6
- Please consider progressive enhancement to avoid blank pages when CSPs don't allow JS HOT 3
- Pattern UKStagingJsonReports/.jsons/*.json matched no report files HOT 8
- formatDuration raises sometimes an "Expected a finite number" exception (and it displays a blank screen) HOT 1
- Report shows passed steps as pending HOT 3
- Failures array empty in report
- Asset folder is getting generate even after --inline=true argument
- Copy Text from Test Header
- Please add line number for soure code displaying HOT 1
- Failing to use [name] for reportFilename HOT 1
- Test result file types/interfaces
- Unable to format the "context" section of the mochawesome report
- Ability to show hooks duration in the generated report
- Assets not placed in correct directory
- Reduce the file size mochawesome report
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mochawesome-report-generator.