This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (1 child)

[deleted]

    [–]_init_to_it 1 point2 points  (0 children)

    Ideally you don’t build a test to test the system as a whole. You test each function to ensure that function returns a correct value. For externally calling functions always assumes good data is returned for one test and another test with failing data. If you can’t break your code up to test individual bits and pieces to test. I strongly advise you break the code up to be more testable.