This is a small sample project illustrating some techniques I think are useful when writing tests. It has the following stuff:
- An illustration of using Cucumber for acceptance testing.
- Many examples of small, focused unit test cases that validate a single feature.
- An example of validating logging, for when logging a condition is considered important enough to mandate a test.
- Several examples of stubbing (using the Apollo StubClient)
- An example of using a fake rather than a mock
- An example of using a mock.