Comments (3)
Thanks for opening an issue but you'll need to provide more information in order for me to look into this. Please use the following template:
Describe the bug
A clear and concise description of what the bug is.
Code Reproduce
Link to repo where the issue can reliably be reproduced:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- Platform
- mochawesome version
- mocha (or other test library) version
- Node version
Additional context
Add any other context about the problem here.
from mochawesome-report-generator.
The Bug
When using Mocha step functions, the following steps:
Step1 Pass
Step 2 Pass
Step 3 Pass
Step 4 Fail
Step 5 Skipped
Have a summary of :
5 Tests, 3 Passed, 1 Failed, 4 Skipped
The steps before the failed step are reported as 'Passed' but they are also reported as 'Pending'. This is reflected in the summary section as text and chart form.
This issue is not seen when using Mocha it functions. The reporting is correct. (3 Passed, 1 Failed, 1 Skipped)
Also when using Mocha steps, if a step is skipped instead of failed, the report also shows the correct summary. (4 Passed, 1 Skipped)
Expected behaviour
For the Mocha step issue, the test steps:
Step1 Pass
Step 2 Pass
Step 3 Pass
Step 4 Fail
Step 5 Skipped
I expect the summary to show:
5 Tests, 3 Passed, 1 Failed, 1 Skipped
Code
I do not have a repo on github to reproduce But I have attached the test report and test files.
mochawesome_pending_bug.zip
Environments
Node version 16..17.0
NPM version 8.19.2
Mocha version 10.0.0
Mochawesome version 7.1.3
mochawesome-report-generator version 6.2.0
mocha-multi-reporters version 1.5.1
from mochawesome-report-generator.
run tests using
npm run test -- tests in zip file
package.json script
"test": "mocha --config ./test/.mocharc.js --no-warnings --no-deprecation",
mocha config file
reporter in config file is set up as:
reporter: 'mocha-multi-reporters', 'reporter-option': ['configFile=./config/default.json'],
reporter-options config file
"mochawesomeReporterOptions": {
"inline": true,
"code": false,
"charts":true,
"reportDir": "test-report",
"reportFilename": "test-report.html",
"reportPageTitle": "Test Report"
},
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
- 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.