Learn how to improve your test performance against container-based resources by magnitudes in a couple of easy steps!
Given that the JUnit ecosystem is much more developed, I think I’ll switch to JUnit for new projects and reassess again in a few years.
JfrUnit is an extension for JUnit 5 which integrates Flight Recorder into unit tests.
It makes it straightforward to initiate a JFR recording for a given set of event types, execute some test routine, and then assert the JFR events which should have been produced.
Stay tuned for next parts in this series, where we’ll explore how to trace the SQL statements executed by an application using the JMC Agent and assert these query events using JfrUnit.