---
title: "Migrating from Burst to TestParameterInjector"
url: https://daily.dev/posts/migrating-from-burst-to-testparameterinjector-b7gdam1m1
source_url: https://code.cash.app/migrating-from-burst-to-testparameterinjector
type: article
source: "Jake Wharton"
published: 2026-07-05T07:13:56.947Z
updated: 2026-07-05T07:18:06.842Z
tags: ["testing", "android", "kotlin"]
reading_time: 2
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrating from Burst to TestParameterInjector

**[Jake Wharton](https://daily.dev/sources/jakewharton)** · 2 min read · 0 upvotes · 0 comments

## Summary

Square's Burst library for JUnit 4 parameterized testing is being deprecated in favor of Google's TestParameterInjector. The migration is straightforward: replace the @RunWith(BurstJUnit4::class) runner with @RunWith(TestParameterInjector::class) and add @TestParameter annotations to enum parameters in constructors, fields, or test methods. TestParameterInjector supports more types and dynamic parameter generation. Android users should note that instrumentation tests currently require API 26 or newer.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://code.cash.app/migrating-from-burst-to-testparameterinjector>

## Similar posts on daily.dev

- [TestParameterInjector introduces an idiomatic Kotlin API](https://daily.dev/posts/testparameterinjector-introduces-an-idiomatic-kotlin-api-euftmigbu) · Google Open Source Blog · 4 upvotes · 1 comments
- [Recent JUnit Updates for Kotlin](https://daily.dev/posts/recent-junit-updates-for-kotlin-v9pujhmrj) · droidcon · 3 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#android](https://daily.dev/tags/android), [#kotlin](https://daily.dev/tags/kotlin)

[View this post on daily.dev](https://daily.dev/posts/migrating-from-burst-to-testparameterinjector-b7gdam1m1)
