pyenv/test/README.md

40 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2025-09-10 20:50:56 +02:00
# TEST
---
## Running test suite
Test suite could be launch with `make` by providing the right target depending what you want to achieve.
Under the hood, `pyenv` test suites use `bats` as a test framework and are run on the host or docker depending of the target provided to make.
### Targets
- `test`
- Run the whole test suite on the local host
- `test-docker`
- Run the whole test suite in Docker (in all environments)
2025-09-10 20:50:56 +02:00
- `test-unit`
- Run core tests
- `test-python-build`
- Run Python-Build tests
- `test-binary`
- Run Pyenv-Binary tests
- `test-*-docker`
- Run the corresponding test suite in Docker
- `test-*-docker-[BASH_VERSION]`, `test-*-docker-gnu-[BASH_VERSION]`
- Run the corresponding test suite in the official Bash Docker container (alpine/busybox)
against either Busybox tools or GNU tools, with the specified Bash version
among those listed in the `Makefile`
2025-09-10 20:50:56 +02:00
## Targeting specific test / test file
By setting some environment variables, it is possible to filter which test and/or test file will be run
2025-09-10 20:50:56 +02:00
- `BATS_FILE_FILTER`
- Run tests from the specified file
2025-09-10 20:50:56 +02:00
- `BATS_TEST_FILTER`
- Run tests with the names corresponding to the filter