juan_gandhi: (VP)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2014-06-06 08:09 pm

surprises

Just deleted one test - the data on which it was based went to the db, so it's not in the code anymore.

Have you ever deleted a test?

[identity profile] spamsink.livejournal.com 2014-06-07 04:40 am (UTC)(link)
Oh, yes. Once a hardware is discontinued and out of support, there's no need to test any code generation for it.

[identity profile] nponeccop.livejournal.com 2014-06-07 09:45 am (UTC)(link)
Постоянно. Требования через 5 лет поменялись. Или тест поломался, но после исправления стал эквивалентен другому тесту, который уже был.
Edited 2014-06-07 09:45 (UTC)
stas: (Default)

[personal profile] stas 2014-06-07 10:39 am (UTC)(link)
Дык конечно, бывает. Код вон - тест вон. Хотя, к сожалению, реже, чем хотелось бы - некоторый окаменевший навоз мамонта приходится по 10 лет поддерживать, потому что клиенты.

[identity profile] sorhed.livejournal.com 2014-06-07 11:13 am (UTC)(link)
Tests are code.

If it's ok to delete code, it should be ok to delete tests.

(I do both all the time).

[identity profile] sorhed.livejournal.com 2014-06-07 11:15 am (UTC)(link)
(this also means — you should refactor tests, you should carefully engineer tests, and generally the less code for the same test coverage, the better).

[identity profile] archaicos.livejournal.com 2014-06-09 01:27 am (UTC)(link)
Sí, naturalmente.