Programming Testing: Organization

From wikinotes

This changes a lot depending on the project.
I've seen 1:1 tests with code, tests on each object-type etc, or handling scenarios.

The conventions change a bit with the language, but generally

  • create a single unittest file for each file
  • create a test case for the object under, or the method - whichever makes the most sense.
  • integration tests make most sense as scenarios you'd like covered.