Red-First TDD
By the end of this guide, you will:
-
Understand the red-green-refactor cycle
-
Know why writing tests first leads to better design
-
Write a failing test for your second Fragment’s View (red)
-
Implement the View to make the test pass (green)
-
Write a failing test for your Fragment’s Update (red)
-
Implement the Update to make the test pass (green)
-
Use RatatuiRuby layouts to arrange Fragments side-by-side
-
Coordinate state between two Fragments
-
Understand when to split UI into separate Fragments
-
Refactor your code while tests keep you safe
⚠️ This page is a stub. Help us write it! See the Documentation Plan and Style Guide.