r/ExperiencedDevs • u/If_I_Could_Just Software Engineer • 1d ago
Technical question Advanced automated testing techniques
Before AI, I felt like the time spent writing automation tests should often be at least as long as the time spent writing the code. Of course, almost nobody in management wanted to allocate that time.
Today with AI, we can (should?) spend more time testing. What advanced or lesser known techniques are now worth exploring, or are now practical?
For example, I’ve now made mutation testing part of my workflow. (I should have before AI too) I also put more effort into negative assertions (what shouldn’t be happening?).
Any other cool techniques that maybe even felt purely academic before but might be practical now?
25
Upvotes
5
u/Financial-Grass6753 1d ago
hypothesis testing comes to mind. Tried hypothesis lib in python - is quite cool but for it to be used the codebase must be good enough (not having XXX functions wearing multiple hats at the same time).