mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 19:17:09 +03:00
22 lines
557 B
JavaScript
22 lines
557 B
JavaScript
require('jasmine-reporters');
|
|
|
|
class JasmineJUnitReporter extends jasmine.JUnitXmlReporter {
|
|
fullDescription(spec) {
|
|
let fullDescription = spec.description;
|
|
let currentSuite = spec.suite;
|
|
while (currentSuite) {
|
|
fullDescription = currentSuite.description + ' ' + fullDescription;
|
|
currentSuite = currentSuite.parentSuite;
|
|
}
|
|
|
|
return fullDescription;
|
|
}
|
|
|
|
reportSpecResults(spec) {
|
|
spec.description = this.fullDescription(spec);
|
|
return super.reportSpecResults(spec);
|
|
}
|
|
}
|
|
|
|
module.exports = { JasmineJUnitReporter };
|