> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codebeaver.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Test failed

This error means that CodeBeaver couldn't run your tests or your coverage commands.

## Monorepo and subfolders

If the root of your repository is not the root of your project, you will need to add a `codebeaver.yml` file to the root of your repository. [Read more about monorepo support](/configuration#multiple-workspaces).

## Python

Check the following:

* Check that you have a `requirements.txt` or `pyproject.toml` file in the root of your repository (or in the root of the [monorepo workspace](/configuration#multiple-workspaces)). If you are using Django, also putting your requirements in a subfolder like `requirements/base.txt` or `requirements/test.txt` will work.
* If you need private dependencies accessible only with password or IP whitelisting, reach out to at [info@codebeaver.ai](mailto:info@codebeaver.ai) so we can set up your secrets (the feature is in Private Beta).
* Check that you are able to run your tests locally by running `pytest` or `python -m unittest`. In particular, check that your `pytest.ini` or `setup.cfg` file is correct is valid if any is present.
* Check that you are able to run your coverage locally by running `pytest-cov` or `coverage run -m pytest`.

## Javascript / Typescript

Check the following:

* Check that you have a `package.json` file in the root of your repository (or [monorepo workspace](/configuration#multiple-workspaces)).
* Check if you have a valid `test` and `coverage` script in your `package.json`. Also `test:cov` or `test:coverage` are valid.
* Check the `test` and `coverage` use one of the [supported frameworks](/features/supported-languages). If not, reach out to us at [info@codebeaver.ai](mailto:info@codebeaver.ai) so we can add support for your framework.
* If you need private dependencies accessible only with password or IP whitelisting, reach out to at [info@codebeaver.ai](mailto:info@codebeaver.ai) so we can set up your secrets (the feature is in Private Beta).
* Check that you are able to run your tests and coverage locally by running `npm test` and `npm run coverage`.

## No tests generated

This message means that CodeBeaver couldn't generate any tests for your Pull Request. Consider that CodeBeaver only generates tests for files that have changed in the PR, not for your whole codebase.

If you were expecting tests given your Pull Request changes, take these steps to ensure that CodeBeaver can generate tests for your codebase:

1. Make sure you have a `setup.py` or `pyproject.toml` file in the root of your repository.
2. Make sure you have a `package.json` or `yarn.lock` file in the root of your repository.
3. Make sure you have a `codebeaver.yml` file in the root of your repository.
