What can or should be considered the right size of a unit with regard to what is tested in isolation? Two unit-testing approaches explained!
Faster Integration Tests with Reusable Testcontainers
Learn how to improve your test performance against container-based resources by magnitudes in a couple of easy steps!
Reassessing TestNG vs. Junit
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.
Towards Continuous Performance Regression Testing
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.