-
Recent Posts
Archives
Blogs I Follow
Tag Archives: unit test
Coding Practice: Unit Test Coverage
Coding Practice: How much code should I expect to cover with my unit tests? This is another one of those questions where the answer is “it depends”. A hard fast rule of thumb is that you should … Continue reading
Coding Practice: Unit Testing – Arrange, Act, Assert
Coding Practice: How should I layout my unit tests? Just as you would when working with any code, your objective is readability and ease of comprehension. A coding layout for unit tests that achieves this objective is … Continue reading
Coding Practice: Unit Test Execution Time
Coding Practice: What do I do when my unit tests take more than 6 seconds to run? Unit tests should take less than 1 second to run per test. When recently looking at a leading open source eCommerce project, … Continue reading
Coding Practice: Unit Test to Code Ratio
Coding Practice: What should I do if my lines of unit test code is greater than the lines of code being tested? This is a good sign. You should expect to have a code-to-test ratio of 1:2 (i.e. twice as … Continue reading