Warning: Constant DISALLOW_FILE_EDIT already defined in /www/wwwroot/wp.rungobag.cn/wp-config.php on line 97

Warning: Constant DISALLOW_FILE_MODS already defined in /www/wwwroot/wp.rungobag.cn/wp-config.php on line 98
Ask HN: How do you separate intentional test boilerplate from real duplication? – RUNGO RSS

Ask HN: How do you separate intentional test boilerplate from real duplication?

作者:

I am maintaining an open-source project (deterministic open source duplicate-code detector) and a user asked for a feature which I don’t have a clear answer on how to implement.This seems a very hard problem to solve:-Tests repeat the same scenario. For a structural detector, this flags as repetition (duplication). However, tests are not something people want to delete from the codebases.-The repetitions from tests (on purpose) end up looking like undesired code duplication and the tools canno t…

查看原文 →


来源:Hacker News · RSS 采集

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注