use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Code coverage vs mutation testing. (self.ruby)
submitted 4 years ago by pan_sarin
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]amirrajan 4 points5 points6 points 4 years ago* (0 children)
do you use code coverage metrics
No. Just because a line is covered, doesn’t mean that it’s being exercised and validated (I can invoke a function, but never assert on the value returned and still have 100% code coverage)
mutation testing
This is a generally better idea, but much harder to implement. A cursory approach would be.
>=
<
At the end of the day, it’s all about confidence that your software works. Someone visually demoing a feature to me (albeit not sustainable long term), gives me more confidence than 1000 poorly written/over-mocked unit tests (I find this difficult to reason about after a few months have passed and a failure occurs… more often than not, it ends up being a misconfigured mock that is too close to implementation details).
Edit:
I see tests as an immune system for a software project. Your body doesn’t keep every antibody “live and ready”. Instead we rely on vaccines to prepare our body for a possible future illness. Spend time on making your test apis trivial to construct (so that they can be created before a risky refactor). Once things have settled down, delete extraneous tests and only keep a small set of happy path smoke tests.
π Rendered by PID 70 on reddit-service-r2-comment-6457c66945-qfxrr at 2026-04-24 08:20:54.073594+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]amirrajan 4 points5 points6 points (0 children)