-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report tests separately even if their descriptions match (#31)
Fixes issue #30 Individual changes: * Add tests for issue #30 * Add test configurations with mocha/chai and jasmine to `examples/` * Use `result.id`, when available, and a work around otherwise * Add comment
- Loading branch information
Showing
8 changed files
with
277 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module.exports = function(config) { | ||
config.set({ | ||
frameworks: ['jasmine'], | ||
files: [ 'test.js' ], | ||
reporters: ['progress', 'summary'], | ||
summaryReporter: { | ||
show: 'all', | ||
}, | ||
}) | ||
} |
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,4 @@ | ||
describe('truthy-tests', () => { | ||
it('should be truthy', () => { expect(true).toBeTruthy(); }); | ||
it('should be truthy', () => { expect(1).toBeTruthy(); }); | ||
}); |
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,11 @@ | ||
|
||
module.exports = function(config) { | ||
config.set({ | ||
frameworks: ['mocha', 'chai'], | ||
files: [ 'test.js' ], | ||
reporters: ['progress', 'summary'], | ||
summaryReporter: { | ||
show: 'all', | ||
}, | ||
}) | ||
} |
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,6 @@ | ||
// Mocha/Chai doesn't supply `result.id` | ||
|
||
describe('truthy-tests', () => { | ||
it('should be truthy', () => { assert.equal(true, true); }); | ||
it('should be truthy', () => { assert.equal(1, true); }); | ||
}); |
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 |
---|---|---|
|
@@ -5,17 +5,21 @@ | |
"description": "Examples for karma-summary-reporter.", | ||
"scripts": { | ||
"bugs": "karma start bugs/karma.conf.js", | ||
"features": "karma start features/karma.conf.js" | ||
"features": "karma start features/karma.conf.js", | ||
"issue-#30/mocha-chai": "karma start issue-#30/mocha-chai/karma.conf.js", | ||
"issue-#30/jasmine": "karma start issue-#30/jasmine/karma.conf.js" | ||
}, | ||
"author": "Stephan Hohe <[email protected]>", | ||
"license": "MIT", | ||
"homepage": "https://github.com/sth/karma-summary-reporter#readme", | ||
"dependencies": { | ||
"chai": "^4.1.2", | ||
"jasmine": "^5.1.0", | ||
"karma": "^6.3.14", | ||
"karma-chai": "^0.1.0", | ||
"karma-jasmine": "^5.1.0", | ||
"karma-mocha": "^2.0.0", | ||
"karma-summary-reporter": "file:..", | ||
"karma-summary-reporter": "link:..", | ||
"mocha": "^9.0.0" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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