|
|
|
|
|
by deathmonger5000
849 days ago
|
|
I taught https://github.com/KillianLucas/open-interpreter how to use https://github.com/ferrislucas/promptr Then I asked it to add a test suite to a rails side project. It created missing factories, corrected a broken test database configuration, and wrote tests for the classes and controllers that I asked it to. I didn't have to get involved with mundane details. I did have to intervene here and there, but not much. The tests aren't the best in the world, but IMO they're adding value by at least covering the happy path. They're not as good as an experienced person would write. I did spend a non-trivial amount of time fiddling with the prompts I used to teach OI about Promptr as well as the prompts I used to get it to successfully create the test suite. The total cost was around $11 using GPT4 turbo. I think in this case it was a fun experiment. I think in the future, this type of tooling will be ubiquitous. |
|
Another use case where the cost of being slightly worse than a human is totally fine.(coming from someone that doesn't write tests lol)
I'd love to learn in more detail how it created those factories, corrected broken test database. It _feels_ that some of these tasks require knowing different parts of the codebase decently well, which from my experience hasn't always been the strong suite for AI assisted coding.