Skip to content

FrederikSchlemmer/junit-insights

 
 

Repository files navigation

codebeat badge GitHub issues GitHub forks GitHub stars GitHub license

JUnit Insigths for Spring

JUnit Insights is an extension for the use of JUnit 5 in combination with the Spring framework, which

  1. measures the time for setup, execution and teardown for each test method in each test class
  2. and creates a nice looking report that visualizes the data.

Background: When building integration tests with Spring (e.g. with @SpringBootTest), sometimes a Spring application context has to be started and sometimes it doesn't. For the user of the test classes, it looks like some tests take a long time to execute, although the actual test runs fairly quickly. To make this behavior transparent, a report is created.

How to use

Add the dependency to your project.

Add @JUnitInsights to the test-classes you want to benchmark. Be aware that ExtendsWith(SpringExtension::class) needs to be used as Runner-class.

About

Extension for JUnit which provides insights for the runtime of contexts, classes and methods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 54.0%
  • Kotlin 46.0%