> For the complete documentation index, see [llms.txt](https://gnosza.gitbook.io/substrate-blockchain-starter-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gnosza.gitbook.io/substrate-blockchain-starter-kit/architecture/testing.md).

# Testing

## Types of tests

On Substrate Starterkit, we do both unit testing and integration testing.

## Naming and Location

All tests are located under `/src/tests` where next pattern is followed for naming:

* Unit tests: `classToTest.unit.test.ts`
* Integration tests: `classToTest.int.test.ts`

## Running the tests

To run the tests, we have a few commands enabled:

**Running the integration tests:**&#x20;

```bash
yarn test:integration
```

**Running unit tests:**

```bash
yarn test:unit
```

**Running all tests concurrently**

```bash
yarn test
```
