Today I was writing a class JUnit test code that of course runs very slow as it starts up by bringing the whole AWS infrastructure online (exaggeration) just to run several assertTrue statements..
As you might suspect, I am not fond of writing this test code. This is because I know in my heart that this test code will be more burden than useful:
- The test will contribute to a test suite that will take 5 hours to complete
- The test is very hard to read because it deals with CSV importing code.. and Java does not deal well with such string intensive inputs
- The test has a lot of test specific code which adds maintenance burden
- Dev only test code, modern test code strive towards making it readable for non-technical
PS: The title is inspired by Nico Rosberg's podcast called "Beyond Victory"