mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +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 };
|