Gathering detailed insights and metrics for mochawesome-screenshots-custom
Gathering detailed insights and metrics for mochawesome-screenshots-custom
Gathering detailed insights and metrics for mochawesome-screenshots-custom
Gathering detailed insights and metrics for mochawesome-screenshots-custom
This is a fork of Mochawesome(MochawesomePlusPlus) reporter with added screenshots functionality.
npm install mochawesome-screenshots-custom
Typescript
Module System
Node Version
NPM Version
JavaScript (49.41%)
CSS (47.07%)
mupad (3.06%)
HTML (0.46%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
45 Commits
1 Branches
1 Contributors
Updated on Dec 05, 2019
Latest Version
1.0.2
Package Id
mochawesome-screenshots-custom@1.0.2
Unpacked Size
1.56 MB
Size
682.95 kB
File Count
83
NPM Version
6.12.0
Node Version
12.13.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
16
1
This is a fork of Mochawesome(MochawesomePlusPlus) reporter with added screenshots functionality for Protractor. A reporter takes a screenshot after each failed Protractor test.
Installation of the module:
$ npm install mochawesome-screenshots --save-dev
Usage remains the same as the Mocahwesome.
In your Protractor configuration file:
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
},
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
0 existing vulnerabilities detected
Reason
Found 0/30 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 SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
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