An appeal for test driven development! #114
jbusecke
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
@jbusecke : thanks for your efforts! Do you have any advice on where a TDD noob could go to get more basic advice and examples on best-practices for approaching TDD? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
Since we are seeing some PRs coming in (thanks @callumrollo @isgiddy ) I just wanted to layout a general strategy that hopefully will help all of us to increase the test coverage (and make development easier actually).
I would strongly encourage 'test-driven development', which basically means that for any change you make, you should think about and write the test before the actual code.
For a bug fix this usually looks like this:
Same for a new feature:
This might seem a bit counterintuitive at first, but I am very convinced that this encourages a lot better code, and makes the maintenance easier.
Let me know if anything about this is unclear. And keep those amazing PRs coming! Hehe
Beta Was this translation helpful? Give feedback.
All reactions