Unit testing With BlockHound

Learn to run unit tests using BlockHound.

Slipping BlockHound into the main entry point for our application is an effective warmup, but it’s not the best strategy. That approach leaves BlockHound active in production.

It’s better to leverage BlockHound in our test cases.

Add BlockHound to our application

To add BlockHound’s JUnit support, we add the following to our pom.xml file:

Get hands-on with 1200+ tech skills courses.