Sometimes it is needed to add some additional information to JUnit report. For example, if you want to add screenshots and so on. It can be easily done in Grails.
First, you need to modify
Then create
Now Grails will use these files to format test results.
First, you need to modify
scripts/_Events.groovy
and redefine reporting template folder.eventAllTestsStart = {
junitReportStyleDir = "src/templates/reports/"
}
Then create
src/templates/reports
folder and just add junit-frames.xsl
and junit-noframes.xsl
from lib
folder under Grails home.Now Grails will use these files to format test results.
No comments:
Post a Comment