Hacker News new | ask | show | jobs
by scintill76 3900 days ago
Still seems kind of fishy, at least without some stated reason why it needs to know it's being tested.
2 comments

See this comment from weinzierl, which has an example of a system that needs to behave differently while in a test environment:

https://news.ycombinator.com/item?id=10409417

The offending code could be obfuscated through all manner of requirements documents.

Without being able to see the actual code and requirement documents, all claims about them are pure, idle speculation.