part 4
what makes tests maintainable?
arrange act assert annihilate
tests should be independent of their order
tests should be short easy to understand assert only one use-case scenario
tests should not contain: conditionals / loops
tests are just code
numbers & strings 7 > DAYS_IN_WEEK = 7 "asdasd" > "country name" "xx" > NAME_WITH_2_LETTERS = "xx"
what makes tests reliable?
ignore code coverage test business logic use code coverage for validation
cyclomatic complexity edge cases
you should trust your tests green = "it works"
By Andrei Pfeiffer