# Uber uses AI to migrate 600,000 JUnit 4 tests to JUnit 5

> Original title: How do you migrate 600,000 JUnit 4 tests covering 15 million lines of code (!!) to JUnit 5 - a not trivial migration at all?

- Source: Gergely Orosz
- Published: 2026-10-06T11:32:57.000Z
- Bad Influence: https://badinfluence.news/items/qjnltvt2vfe5tq2si1u8d9q4d
- Original: https://x.com/GergelyOrosz/status/2107433929934307606

## Summary

Uber's engineers describe migrating 600,000 JUnit 4 tests covering 15 million lines of code to JUnit 5, which the post author says was impractical by manual means. The author says AI now makes such a large migration feasible, and points readers to Uber's engineering blog for the details.

## Post

How do you migrate 600,000 JUnit 4 tests covering 15 million lines of code (!!) to JUnit 5 - a not trivial migration at all?

Pre-AI, I have no idea how, beyond a LOT of manual migration work; and try to automate some of it.

With AI, it's suddenly very doable. Details from @UberEng at https://www.uber.com/us/en/blog/junit-migration/

![](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Fmedia%2FHT8b8iwWoAI1Pa_.jpg&mode=thumb&exp=1795737600&sig=aec1f2dfa8eacfe2)
