forked from YOU54F/cypress-multi-reporters
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - Testing: Get to 100% coverage * - Apply some common rules; simplify * - Docs: Use `const` in README
- Loading branch information
Showing
11 changed files
with
179 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
'use strict'; | ||
|
||
var MultiReporters = require('./lib/MultiReporters'); | ||
const MultiReporters = require('./lib/MultiReporters'); | ||
|
||
module.exports = MultiReporters; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"reporterEnabled": "badname", | ||
|
||
"badnameReporterOptions": { | ||
"output": "artifacts/test/custom-xunit.xml" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"reporterEnabled": "dot, mocha/README.md", | ||
|
||
"xunitReporterOptions": { | ||
"output": "artifacts/test/custom-xunit.xml" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"reporterEnabled": "dot, ./tests/custom-erring-internal-reporter.js", | ||
|
||
"xunitReporterOptions": { | ||
"output": "artifacts/test/custom-xunit.xml" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict'; | ||
|
||
const mocha = require('mocha'); | ||
const {Base} = mocha.reporters; | ||
|
||
/** | ||
* This is a project-local custom reporter which is used as a stub in tests | ||
* to verify if loading reporters from a path (absolute or relative) is successful | ||
*/ | ||
function CustomReporterStub(runner) { | ||
Base.call(this, runner); | ||
} | ||
|
||
module.exports = CustomReporterStub; | ||
|
||
throw new Error('Oops'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
"reporterEnabled": "mocha-junit-reporter", | ||
reporterEnabled: 'mocha-junit-reporter', | ||
|
||
"mochaJunitReporterReporterOptions": { | ||
"id": "mocha-junit-reporter", | ||
"mochaFile": "junit.xml" | ||
mochaJunitReporterReporterOptions: { | ||
id: 'mocha-junit-reporter', | ||
mochaFile: 'junit.xml' | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.