> 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/documentation/unit-tests/good-to-knows/regenerate-bad-tests.md).

# Regenerate Bad Tests

If you're not satisfied with a generated test, you may regenerate it. Follow the steps:

1. Delete the corresponding test file.
2. Run  `welltested generate unit`&#x20;

> 💡: If you've multiple bad tests with similar mistakes, you can fix one of them and save it. Then regenerate the others again and the mistake will be automatically fixed.&#x20;
