rattler-build test#
Run a test for a single package
Usage#
Options#
-
--channel (-c) <CHANNELS>- Channels to use when testing
May be provided more than once.
-
--package-file (-p) <PACKAGE_FILE>- The package file or extracted package directory to test
required:true
-
--compression-threads <COMPRESSION_THREADS>- The number of threads to use for compression
env:RATTLER_COMPRESSION_THREADS
-
--test-index <TEST_INDEX>- The index of the test to run. This is used to run a specific test from the package
-
--debug- Build test environment and output debug information for manual debugging
-
--experimental- Enable experimental features
env:RATTLER_BUILD_EXPERIMENTAL
-
--allow-insecure-host <ALLOW_INSECURE_HOST>- List of hosts for which SSL certificate verification should be skipped
May be provided more than once.
-
--channel-priority <CHANNEL_PRIORITY>- Channel priority to use when solving
Modifying result#
-
--output-dir <OUTPUT_DIR>- Output directory for build artifacts.
env:CONDA_BLD_PATH
Description#
Run a test for a single package
This creates a temporary directory, copies the package file into it, and then runs the indexing. It then creates a test environment that installs the package and any extra dependencies specified in the package test dependencies file.
With the activated test environment, the packaged test files are run:
info/test/run_test.shorinfo/test/run_test.baton Windows *info/test/run_test.py
These test files are written at "package creation time" and are part of the package.