4 ms·
You shouldn't be unit testing on production. You should run as little as possible in prod.
by staunch 13y ago
You shouldn't be unit testing on production. You should run as little as possible in prod.
- jbrowne 13y agoThanks for responding staunch! Is that mainly to avoid performance costs/clutter, or for security reasons or both?
- staunch 13y agoYou're increasing risk for little benefit. A Javascript unit testing framework could likely be used for crafting XSS exploits. Or it could end up slowing down real users when you forget to turn it off (or whatever). Probably nothing bad will happen but it's a needless risk and a bad practice.
- jbrowne 13y agoOk, got it - makes sense. Thanks for the input staunch, much appreciated.