Ask HN: Are there any LLM projects for creating integration tests?
I’m curious if anyone has seen a project involving LLM’s that takes a series of user actions and creates integration test code for them, something like:
I goto to example.com
I click the search bar
I type in “fruit”
Expect to see a list of fruit
Then the LLM would execute something like playwright to achieve each of these steps and report back if any steps failed…
3 comments
[ 3.9 ms ] story [ 13.8 ms ] threadconvert this free text
to playwright scriptconst { chromium } = require('playwright');
(async () => { const browser = await chromium.launch(); const context = await browser.newContext(); const page = await context.newPage();
})();https://github.com/hitchdev/hitchstory
I dont think that this type of task is really appropriate for an LLM though. It is better to use hard, prewritten abstractions for the truly deterministic stuff (e.g. click).
For other situations where you may need to do subtle trade offs (e.g. choosing an HTML selector for the search bar) an LLM will generally do a bad job.