Testing - designing integration tests
notes from the internet
designing an integration test
test code paths
test cases must test:
- calls to other routines
- passing of parameters
- data dependency
- changes to global data
- data validation (checking of input parameters) // typescript?
- interconnectivity (across a network / between the client and the server)
- interrelationship of subsystems
- interfaces to other systems
hard to test code might include
- tightly coupled components
- functions that are not exposed (no export)
- singletons
- anonymous functions
- mixed concerns
- new operators
ref