
jasmine-jvm.reporter.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jasmine Show documentation
Show all versions of jasmine Show documentation
A jasmine runner using the dynjs javascript runtime
The newest version!
exports.reporter = function(notifier){
return {
reportRunnerStarting: function(runner){
notifier.started();
},
reportRunnerResults: function(runner){
notifier.finished();
},
reportSuiteResults: function(suite){
},
reportSpecStarting: function(spec){
},
reportSpecResults: function(spec){
var identifier = org.jasmine.Identifier.identifier(spec.suite.id, spec.id);
if(spec.results().passed()){
notifier.pass(identifier, spec.description);
}else{
var failures = spec.results().getItems().map(function(item){
var stack = org.jasmine.Failure$Stack.stack(item.trace.stack);
return org.jasmine.Failure.failure(identifier, stack);
});
var builder = com.google.common.collect.ImmutableSet.builder();
failures.forEach(function(failure) { builder.add(failure); });
notifier.fail(identifier, spec.description, builder.build());
}
},
log: function(str){
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy