1
sesh
6y

The code passes the tests which i wrote for the code to pass so it must be fine. (These are only assert statements mind you)

Comments
  • 3
    What's the question?
  • 0
    The most probable question is whether you should write such tests at all, though it is absolutely rhetorical
  • 1
    Sorry about that guyz I unintentionally posted a question when I was trying to rant.
  • 1
    @Root and @asgs
    I also don’t mean do not write tests. I mean, someone had written really simple tests without covering many points of failure so that they could pass then brag about how much they knew of test driven development.
    They only tested the outputs nothing about the db connection failure or queries failing, nothing about malformed requests etc.
    If one is going to write tests they should be thorough.
Add Comment