tdd definition code example
Example 1: tdd
In Test Driven Development Tests are created before actual code.
Than developers run the (UNIT) tests and Tests fail (because there is no code)
Than developer Write the code to pass the tests and Run the tests again.
Tests will PASS, against MVP(minimum viable product) code.
lastly they REFACTOR YOUR CODE -> RE-DO ALL STEPS
Example 2: what is test driven development
In Test Driven Development Tests are created before actual code.
Than developers run the (UNIT) tests and Tests fail (because there is no code)
Than developer Write the code to pass the tests and Run the tests again.
Tests will PASS, against MVP(minimum viable product) code.
lastly they REFACTOR YOUR CODE -> RE-DO ALL STEPS