O'Reilly logo

Mastering Software Testing with JUnit 5 by Boni García

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Allure

Allure (http://allure.qatools.ru/) is a light-weight open source framework for generating test reports for different programming languages, including Java, Python, JavaScript, Ruby, Groovy, PHP, .NET, and Scala. Generaliy speaking, Allure uses the XML test output and transforms it in an HTML5-rich report.

Allure provides support for JUnit 5 projects. This can be done using both Maven and Gradle. Regarding Maven, we need to do register a listener in maven-surefire-plugin. This listener will be the class AllureJunit5 (located in the library io.qameta.allure:allure-junit5), which is basically a implementation of the JUnit 5’s TestExecutionListener. As described in chapter 2, What’s New In JUnit 5, TestExecutionListener is part of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required