> For the complete documentation index, see [llms.txt](https://docs.welltested.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.welltested.ai/v1/welltested-ai/unit-tests/good-to-knows/regenerate-bad-tests.md).

# Regenerate Bad Tests

In case, you're not satisfied with a generated test for a method, you can ask for a regeneration of it.&#x20;

Follow the steps:

1. Delete the corresponding file of the test.
2. Run the generation `dart run welltested:ai build`

> 💡: If you've multiple bad tests with same mistakes, you can fix one of them and save it back to the system. Then regenerate the others again and the mistake will be automatically fixed.
