10

There is how you think a system works, and there is how it actually works. Unit tests help keep those two ideas in sync with each other

Comments
  • 1
    What do you put in a bug report? Just wondering I got so many question regarding that..
  • 0
  • 1
    @rui725 replace how you think it works part with what it should do from the spec. Compare that with what it actually does. Write a bug report on the difference
  • 0
    @windlessuser starting out qa and interview question like this screws me up..
  • 1
    @rui725 look up Behavior Driven Development. It's unit testing but uses the language of the Specification for the tests. Even a business person should be able to read the test suite and know the system meets the spec
  • 0
    @windlessuser isn’t that more of a dev thing rather than qa just like devs do tdd when developing software?
  • 0
    @rui725 yeah, this is mainly a dev thing. QA should be more focused on finding edge cases. Spots where the spec itself fails
Add Comment