3 ms·
I'm often left scratching my head about what behaviour a test was even supposed to test! One thing I find very helpful is to add my expectation as string messag
by lolc 2y ago
I'm often left scratching my head about what behaviour a test was even supposed to test! One thing I find very helpful is to add my expectation as string message to every assertion in the test. When the test fails, it will tell me which expectation was violated.