rythm.~test.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of act Show documentation
Show all versions of act Show documentation
The ACT full stack MVC framework
@import org.osgl.Lang
@import act.test.Scenario
@import act.test.Interaction
@args List result, boolean failure
@ifNot(failure) {
} else {
}
@render(head)
Test Report
@(_app.name())-@(_app.version().getVersion())
@for(Scenario scenario: result) {
@scenario.title() @if(scenario.issueUrl) {
}
@if(scenario.ignore) {
- - @scenario.getIgnoreReason()
}
@if(Lang.not(scenario.ignore) && !scenario.status.pass()) {
@if(scenario.source) {
Re-run scenario >
} else {
Re-run scenario >
}
}
@if(Lang.not(scenario.ignore) && !scenario.status.pass() && null != scenario.errorMessage && !scenario.errorMessage.contains("Interaction[")) {
[@scenario.status] @scenario.errorMessage
@if(null != scenario.cause && (!(scenario.cause instanceof act.test.util.ErrorMessage))) {
@scenario.causeStackTrace()
}
}
@ifNot(scenario.ignore) {
@for (Interaction interaction: scenario.interactions) {
-
[@interaction.status] @interaction.description.capFirst()
@if(interaction.errorMessage) {
@interaction.causeStackTrace()
}
}
}
@if(interaction.cause != null && (!(interaction.cause instanceof act.test.util.ErrorMessage))) {
}
}
[email protected]()