~/talk

Junit5: the next gen of testing, don't stay behind

Talkat droidCon NYC 2018 · 2018-08-27..08-28· [testing, java]
slides:none on file

Explains why JUnit 5 actually rewrites execution: it splits platform, Jupiter API and a vintage engine so JUnit4 tests keep running; shows concrete features used at work — @Nested for readable specs, assertAll and assertThrows, parameterized and dynamic tests — and demonstrates Gradle Android support via Marcel Schneller’s plugin but with instrumentation requiring min SDK 26 and Espresso still needing rule-to-extension workarounds. Builds a custom engine to run Robolectric (works but doubles discovery), and recommends writing new tests in JUnit5 and migrating rules to extensions.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:11History of JUnit from 1994 to 2016
  3. 6:12JUnit Lambda crowdfunding and JUnit 5 vision
  4. 8:59Key changes in JUnit 5
  5. 10:25JUnit 5 test output and display names
  6. 12:10New assertions and assumptions in JUnit 5
  7. 13:54Tagging and conditional tests
  8. 15:19Nested tests feature
  9. 16:43Experimental features in JUnit 5
  10. 19:09Migrating from JUnit 4 to JUnit 5
  11. 20:32Rules and runners in JUnit 5
  12. 22:41Extensions as new rules
  13. 23:25JUnit 5 support in Android
  14. 24:07Instrumentation tests in Android
  15. 24:47Espresso tests and limitations
  16. 26:10Mobile Electric and JUnit 5
  17. 27:12Custom class loading challenges
  18. 28:56Test instance factory in JUnit 5.3
  19. 30:46Creating custom JUnit 5 engines
  20. 32:52Should you migrate to JUnit 5?
  21. 33:55Resources and closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.