logoalt Hacker News

AstroBen • yesterday at 8:12 PM • 1 reply • view on HN

So you just click around the UI, assuming there is one?

Can you break down for me exactly how the unit and integration tests are made? Do you ask the AI what to assert?


Replies

skeledrew • yesterday at 8:25 PM

> exactly how the unit and integration tests are made

There should be enough detail in the spec that it's pretty obvious. And unlike - many - human devs, agents don't shy away from writing tests. Add a coverage guardrail and tell them to use red/green TDD and you're already a good way there. The main thing is to ensure shared understanding, so they also know business expectations and write appropriate tests. And... nothing here is really specific to an agent, as a human dev also needs sufficient guidance (tailored to their experience level).

➕ show 1 reply