Used well, an AI is excellent at the enumeration part of testing — it brainstorms edge cases and writes the boilerplate fast. But you must verify the assertions are meaningful, because an AI will happily write tests that pass without proving anything.
