|
|
|
|
|
by zie1ony
367 days ago
|
|
I find it amazing, that the same ideas pop up in the same period of time. For example, I work on tests generation and I went the same path. I tried to find bugs by prompting "Find bugs in this code and implement tests to show it.", but this didn't get me far. Then I switched to property (invariant) testing, like you, but in my case I ask AI: "Based on the whole codebase, make the property tests." and then I fuzz some random actions on the state-full objects and run prop tests over and over again. At first I also wanted to automate everything, but over time I realized that best is: 10% human to 90% AI of work. Another idea I'm exploring is AI + Mutation Tests (https://en.wikipedia.org/wiki/Mutation_testing). It should help AI with generation of full coverage. |
|
Tests are executable specs. That is the last thing you should offload to an LLM.