Open florianluediger opened 6 years ago
We need to investigate if there are more lifecyclehooks or options to determine the time. Maybe we can ask someone from the JUnit5-Team in this regard.
When starting a spring context with Spring Boot, there is a log output saying "XyContext: initialization completed in 4711 ms" If we find this in the spring boot code, we might be able to extract this information the same way that Spring Boot does.
Spring boot is not actually responsible for this log output, because it comes from the ContextLoader from the core spring framework and there does not seem to be a way to extract that information in the same way.
Currently the time spent on Spring related actions is calculated as follows:
Spring time = total time - test time
This way, all the time spent on other things that are not necessarily Spring related is included in this time.