Burst is an open-source library from Square that improves parameterized testing in JUnit by using Java enums instead of object arrays. Unlike JUnit 4's built-in Parameterized runner, Burst automatically generates test combinations from enum constructor parameters, supports method-level parameterization, and works with Android's JUnit 3-based test framework via a dedicated BurstAndroid runner. Enums can carry embedded data for complex test cases, and BurstAndroid adds test filtering via isClassApplicable/isMethodApplicable for device-specific tests.

5m read timeFrom developer.squareup.com
Post cover image
Table of contents
JUnit’s ParameterizedIntroducing BurstAndroidFiltering testsDownloading