> For the complete documentation index, see [llms.txt](https://docs.elentra.org/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.elentra.org/api/automated-testing/getting-started/running-automated-tests.md).

# Running Automated Tests

## Running the Functional Tests

Run the following commands in the `elentra-1x-api` directory.

* Running all the tests:

```bash
composer test:unit
```

* Testing all the tests for a specific class:

```bash
composer test:unit tests/Functional/Portfolio/Http/PortfolioControllerTest.php
```

* Alternatively, run all functional tests for a specific controller by typing the name of the test class. This will run all unit test classes matching the specified pattern.

```bash
composer test:unit:single PortfolioController
```

* Running a single functional test, specify the method name:

```bash
composer test:unit:single portfolio_get_method_groups_returns_200
```
