▲ | blablabla123 4 days ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Nobody is going to read these test cases any way, except when troubleshooting or adding new code. But that is never any of the stakeholders It's quite funny that now with AI-based no/low code the same thing is attempted again. Even if the regexes might disappear, it's even more text, with even less structure (assuming anyone checked those prompts into git in the first place) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | hn_throwaway_99 4 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
But, as a software engineer, writing tests is probably the primary place AI gives me value. I can simply write tests much faster than writing them manually, and as a consequence, I'm a lot more likely to write tests that cover more cases. I still review all the code output, but the consequence of me missing a bug is much less than missing a bug in production code. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | MoreQARespect 4 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I use executable specs quite a lot with stakeholders. I'd never ask them to write them, but I will often write a spec/test based upon their two sentence jira and then screenshare and walk them through my interpretation to get feedback early (i.e. before ive wasted time building the wrong thing). Cucumber/gherkin is awful at this of course, and the regex thing was a terrible idea but it's not the only tool. The idea that tests should be split into a specification layer and execution layer is a good one that should have taken off by now. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|