Gathering detailed insights and metrics for mochawesome-screenshots
Gathering detailed insights and metrics for mochawesome-screenshots
Gathering detailed insights and metrics for mochawesome-screenshots
Gathering detailed insights and metrics for mochawesome-screenshots
npm install mochawesome-screenshots
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
7 Stars
62 Commits
14 Forks
2 Watching
13 Branches
2 Contributors
Updated on 27 Apr 2021
JavaScript (49.63%)
CSS (46.87%)
mupad (3.04%)
HTML (0.46%)
Cumulative downloads
Total Downloads
Last day
-0.3%
681
Compared to previous day
Last week
-11.7%
3,116
Compared to previous week
Last month
17.5%
12,869
Compared to previous month
Last year
-67.2%
130,545
Compared to previous year
16
1
This is a fork of Mochawesome(MochawesomePlusPlus) reporter with added screenshots functionality.
A reporter takes a screenshot after each failed test.
Installation of the module:
$ npm install mochawesome-screenshots --save-dev
Usage remains the same as the Mocahwesome.
For protractor - configuration file example:
framework: 'mocha',
mochaOpts: {
reporter: 'mochawesome-screenshots',
reporterOptions: {
reportDir: 'customReportDir',
reportName: 'customReportName',
reportTitle: 'customReportTitle',
reportPageTitle: 'customReportPageTitle',
takePassedScreenshot: false,
clearOldScreenshots: true,
shortScrFileNames: false,
jsonReport: false,
multiReport: false
},
timeout: 600000
},
For playwright and puppeteer:
framework: playwright (puppeteer)
For cypress:
framework: cypress
For webdriver.io:
framework: webdriverio
For nightwatch.js:
framework: nightwatchjs
Use 'multiReport = true' for parallel test execution (adding timestamp in report file name), or change report name in tests or hooks for shardTestFiles option:
const logReport = require('mochawesome-screenshots/logReport');
it('Change report name', function() {
logReport.setReportName(this, 'customReportName');
});
Log data to report:
const logReport = require('mochawesome-screenshots/logReport');
it('Log build number', function() {
logReport.log(this, 'build number:' + buildNumber);
});
Add custom screenshots from mochawesome-reports/screenshots folder to report:
it('Custom screenshot', function() {
..
save screenshot 1 to ('./mochawesome-reports/screenshots/'+imageFileName1);
save screenshot 2 to ('./mochawesome-reports/screenshots/'+imageFileName2);
..
logReport.setScreenshot(this, imageFileName1, 'message1');
logReport.setScreenshot(this, imageFileName2, 'message2');
});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
51 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More