Problems with manual testing:
- Difficult to write effectively
- Impacts actual program
- Very hard to read
- Only a temporary fix
Automated tests:
- Results displayed in an informative way
- Test files are different from source code
- Output is easy to read and understand
- Guarantees code works as expected
- Instantly see if anything has broken when making changes
Unit Tests:
Gurantee an individual piece of code or function work as its supposed to
Integration Tests:
Used when adding new code to already existing code to ensure changes dont break.
End to End Tests:
Timeconsuming , run from start to end for all application functions , methods etc
Behavior Driven environment is like writing a plan before you write your program. You write test before actual code.
Red, Green & Refactor
- write tests even though they will fail
- write easiest code to pass the test
- Go back and improve the code
- repeat
Top comments (0)