News for hackers. Stuff that matters.
Re:Questions to ask yourself when writing tests by querulous on Monday January 01, 2018 @11:21PM (#16049848)
what's wrong with just deleting these now-irrelevant tests?
Re:Questions to ask yourself when writing tests by discreteevent on Tuesday January 02, 2018 @05:49AM (#16051143)
You can delete them but the fact that they are irrelevant now even though you didn't change the behaviour of the software means that it was a waste of time writing them in the first place.

Secondly it decreases your confidence in the refactor. In a classic refactor, nothing should break. This is because a good set of tests are a way of documenting and verifying the design/behaviour of the system.

Finally, often in a codebase with micro tests, there will be an expectation that you replace one set of micro tests with another.

Re:Questions to ask yourself when writing tests by fnord123 on Tuesday January 02, 2018 @05:27AM (#16051059)
Nothing. Integration tests are your hypothesis/experiment. Unit tests are your lab setup.