Please enable JavaScript.
Coggle requires JavaScript to display documents.
Test Driven Development (two types of test, the high-levelfunctional tests…
Test Driven Development
Functional test
-
-
User Story: A description of how the application will work from the point of view of the user.
Used to structure a functional test.
Unit test
The unit-test/code cycle
- Run the unit tests in the terminal.
- Make a minimal code change in the editor.
-
The unit-test/code cycle is sometimes taught as Red, Green, Refactor:
-
• Write the simplest possible code to get it to pass (Green), even if that means cheating.
if your tests let you get away with writing “cheating” code that you’re not happy with, like returning a magic constant, write another test that forces you to write some better code
-
-
-
two types of test, the high-levelfunctional tests which test the application from the user’s point of view, and these lower-level tests which test it from the programmer’s point of view.
-
-
-
-
-
-
-