This guide provides instructions for running tests and executing buildrunner locally during development.
The unit tests use pytest. To run the tests, execute the following commands:
- Clone the buildrunner repository
git clone https://github.com/adobe/buildrunner.git- Navigate to the root of the buildrunner repository
- Install dependencies
uv syncRun the tests
Run all the tests by typing uv run pytest
uv run pytest
To run a specific test file, provide the path to the file
uv run pytest tests/test_buildrunner.py
To run buildrunner locally in the buildrunner directory, use uv run. This ensures that the
latest local changes are used when running buildrunner. The examples/ directory
contains example buildrunner configuration files that can be used to test the
functionality of buildrunner.
To run buildrunner locally follow these steps:
- Clone the buildrunner repository
git clone https://github.com/adobe/buildrunner.git- Navigate to the root of the buildrunner repository
- Install dependencies
uv sync- Run buildrunner
uv run buildrunner -f examples/build/basic/buildrunner.yamlIt is also possible to install and run a working version of buildrunner in another repository. To do this, follow these steps:
- Clone the buildrunner repository
git clone https://github.com/adobe/buildrunner.git- Navigate to the root of the desired repository
- Install buildrunner
uv tool install ..</path/to>/buildrunner- Run buildrunner
buildrunner --helpNote
You can verify that you are using the correct buildrunner by typing which buildrunner.