Monorepo and subfolders
If the root of your repository is not the root of your project, you will need to add acodebeaver.yml file to the root of your repository. Read more about monorepo support.
Python
Check the following:- Check that you have a
requirements.txtorpyproject.tomlfile in the root of your repository (or in the root of the monorepo workspace). If you are using Django, also putting your requirements in a subfolder likerequirements/base.txtorrequirements/test.txtwill work. - If you need private dependencies accessible only with password or IP whitelisting, reach out to at 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
pytestorpython -m unittest. In particular, check that yourpytest.iniorsetup.cfgfile is correct is valid if any is present. - Check that you are able to run your coverage locally by running
pytest-covorcoverage run -m pytest.
Javascript / Typescript
Check the following:- Check that you have a
package.jsonfile in the root of your repository (or monorepo workspace). - Check if you have a valid
testandcoveragescript in yourpackage.json. Alsotest:covortest:coverageare valid. - Check the
testandcoverageuse one of the supported frameworks. If not, reach out to us at 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 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 testandnpm 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:- Make sure you have a
setup.pyorpyproject.tomlfile in the root of your repository. - Make sure you have a
package.jsonoryarn.lockfile in the root of your repository. - Make sure you have a
codebeaver.ymlfile in the root of your repository.