Test Driven Development Session Plan & Outline
1 Session Plan with Time
Session Details |
Time |
Fundamentals |
5 mins |
First Test |
50 mins |
- Writing stub functions |
10 mins |
- How to use if __name__ == '__main__': |
5 mins |
- Writing tests that fail |
15 mins |
- Replacing the stub with code |
10 mins |
- Refactoring the code |
10 mins |
- Buffer |
5min |
First Test - contd ... |
15 mins |
- More refactoring |
10 mins |
- Importance of docstrings |
5 mins |
Persistently stored test cases |
30mins |
- Types of persistent storage and use |
5 mins |
- Structure of the test data |
5 mins |
- Machinery required |
5 mins |
- Writing the tests |
15 mins |
Frameworks |
10 mins |
- Introduction to doctest |
10 mins |
Buffer |
5min |
Frameworks |
55 mins |
- doctests structure |
10 mins |
- Obtaining test cases |
10 mins |
- Invoking doctests |
5 mins |
- Test reports |
15 mins |
- unittest introduction |
10 mins |
Buffer |
10 mins |
Frameworks |
25 mins |
- Boiler plate for unittest |
10 mins |
- Naming conventions |
5 mins |
- Test methods |
10 mins |
Nose |
10 mins |
Conclusion |
10 mins |
Buffer and QA |
15 mins |