# Generate Tests

{% hint style="info" %}
IDE Assist: Trigger via the IDE command [*`Generate Unit Tests`*](https://docs.welltested.ai/v1/ide-assist/commands#generate-unit-tests)
{% endhint %}

To generate tests for your annotated classes, you can use our simple command line across any platform Linux/MacOS and Windows.

```
dart run welltested:ai build
```

The request can take anywhere between 1-10 minutes to generate tests depending upon the number of new methods.&#x20;

After successful run, the tests appear in `/test` directory of you project.

> For convenience, we request you to generate tests in batches for a new project setup. Check [The Batching Rule](https://docs.welltested.ai/v1/welltested-ai/unit-tests/good-to-knows/the-batching-rule)

### Maintaining Tests

If you make any changes to your existing functions or add new methods, you can re run the same commands and the AI will smartly update the tests.&#x20;
