Posts Tagged: unit testing

Rules for good unit tests

Posted by & filed under development.

Test method names should be sentences (This_method_does_this(){})  Test the happy path – the most common/important functionality (acceptance criteria should be executable) Test at the highest level that is practical Unit Tests should not: Talk to the database Talk to the network Touch the file system Don’t change business logic to write the code Depend on […]