pyenv.pyenv/test
2026-08-15 22:47:27 +03:00
..
libexec Revert "Merge pull request #1153 from cmcginty/remove-sbang" 2019-04-23 10:23:33 -04:00
--version.bats pyenv launcher: introduce and export _PYENV_INSTALL_PREFIX (#3334) 2025-12-24 10:00:09 +03:00
commands.bats Import tests from rbenv with sed -e s/rbenv/pyenv/g 2014-01-03 02:06:36 +09:00
completions.bats Merge remote-tracking branch 'rbenv/master' into rbenv-20151121 2015-11-21 04:21:14 +00:00
Dockerfile pyenv-binary: record direct system dependencies in Linux/FreeBSD (#3520) 2026-08-15 22:47:27 +03:00
exec.bats Prevent infinite loop if a shim is linked and called from a nonstandard location with "system" active 2025-12-20 11:05:27 +03:00
global.bats Adapt tests involving current directory for Docker 2026-07-11 08:02:53 +03:00
help.bats Import tests from rbenv with sed -e s/rbenv/pyenv/g 2014-01-03 02:06:36 +09:00
hooks.bats Merge remote-tracking branch 'rbenv/master' into rbenv-1.0 2016-03-02 01:39:52 +00:00
init.bats init: add --install for shell setup (#3454) 2026-06-03 01:13:07 +03:00
latest.bats tests: refactor: migrate to newly-added create_stub() 2025-12-20 11:05:27 +03:00
local.bats Adapt tests involving current directory for Docker 2026-07-11 08:02:53 +03:00
pip-rehash.bats tests: refactor: rename and consolidate create_executable() functions 2025-12-20 08:34:20 +03:00
prefix.bats Adapt tests involving current directory for Docker 2026-07-11 08:02:53 +03:00
pyenv.bats use BATS_FILE_TMPDIR in test/plugin test 2025-09-15 19:48:34 +02:00
pyenv_ext.bats Revert "add tests for PYENV_FILE_ARG" 2021-02-16 23:46:08 +03:00
README.md Add pyenv-binary tests to CI 2026-07-16 10:39:55 +03:00
rehash.bats test_helper: support here-document to assert_success/failure; + assert_output_glob 2026-08-11 05:17:42 +03:00
run add possibility to filter tests with make 2025-09-15 20:16:18 +02:00
shell.bats Add PowerShell support (#2749) 2025-12-21 05:33:19 +03:00
shims-linked-from-elsewhere.bats Prevent infinite loop if a shim is linked and called from a nonstandard location with "system" active 2025-12-20 11:05:27 +03:00
shims.bats Import tests from rbenv with sed -e s/rbenv/pyenv/g 2014-01-03 02:06:36 +09:00
test_helper.bash pyenv-binary: record direct system dependencies in Linux/FreeBSD (#3520) 2026-08-15 22:47:27 +03:00
version-file-read.bats test_helper: support here-document to assert_success/failure; + assert_output_glob 2026-08-11 05:17:42 +03:00
version-file-write.bats use BATS_FILE_TMPDIR in test/plugin test 2025-09-15 19:48:34 +02:00
version-file.bats version-file: Fix infinite loop for relative paths 2026-08-10 12:49:53 +03:00
version-name.bats Adapt tests involving current directory for Docker 2026-07-11 08:02:53 +03:00
version-origin.bats use BATS_FILE_TMPDIR in test/plugin test 2025-09-15 19:48:34 +02:00
version.bats Adapt tests involving current directory for Docker 2026-07-11 08:02:53 +03:00
versions.bats test_helper: support here-document to assert_success/failure; + assert_output_glob 2026-08-11 05:17:42 +03:00
whence.bats tests: refactor: rename and consolidate create_executable() functions 2025-12-20 08:34:20 +03:00
which.bats test_helper: support here-document to assert_success/failure; + assert_output_glob 2026-08-11 05:17:42 +03: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)
  • 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

Targeting specific test / test file

By setting some environment variables, it is possible to filter which test and/or test file will be run

  • BATS_FILE_FILTER
    • Run tests from the specified file
  • BATS_TEST_FILTER
    • Run tests with the names corresponding to the filter