4 ms·
Still seems kind of fishy, at least without some stated reason why it needs to know it's being tested.
by scintill76 11y ago
Still seems kind of fishy, at least without some stated reason why it needs to know it's being tested.
- jsprogrammer 11y agoThe 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.
- greenyoda 11y agoSee 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 https://news.ycombinator.com/item?id=10409417