There are 2 articles tagged as "unit tests"
on January 08, 2020. in Programming, Development. A 2 minute read.
From time to time I come across a mistake in unit tests that makes them useless. The mistake is that we use the class and method that we are testing to create the expected result of the test:
Continue reading Don't use the class under test to create the expected result...
on December 23, 2014. in Development, Programming. A 2 minute read.
One problem with unit testing legacy applications is that the code has new
statements all over the place, instantiating new objects in a way that doesn’t really makes it easier to test the code.
Continue reading Mocking hard dependencies with Mockery...