Is junit developed using TDD? #3777
Replies: 2 comments 1 reply
-
It depends... 🙂 We don't prescribe when tests are written but only check for extensive test coverage when reviewing PRs. The core team usually starts with a failing test when working on a bug fix or new feature so there TDD is used to some extent. |
Beta Was this translation helpful? Give feedback.
-
It depends.... 😄 Generally most of my feature PRs start with a spike to validate that the concept is viable. And only once I understand what the components and interactions involved are I'll switch to writing tests before fully developing the implementation. And generally most of my bug fix PRs start with a reproducer in a separate project. JUnit is used in combination with other tools and frameworks, and usually when starting out it is not obvious where the problem lies. Usually I'll also test the first version of the fix against the reproducer and only then refactor the reproducer into JUnit. And that works well because JUnit facilitates integration tests with the testkit module - this reduces the gap between an external reproducer and a test in the project. |
Beta Was this translation helpful? Give feedback.
-
Are the tests developed before new features are implemented or after they're implemented? Asking because I am curious.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions