Hacker News new | ask | show | jobs
by staunch 4515 days ago
You shouldn't be unit testing on production. You should run as little as possible in prod.
1 comments

Thanks for responding staunch! Is that mainly to avoid performance costs/clutter, or for security reasons or both?
You'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.
Ok, got it - makes sense. Thanks for the input staunch, much appreciated.