Programming Testing: Organization

From wikinotes
Revision as of 13:43, 23 July 2022 by Will (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.