Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SGizek/Raiku/llms.txt
Use this file to discover all available pages before exploring further.
raiku test provides a uniform interface for running tests across all eight languages supported by Raiku. Instead of remembering whether a package uses pytest, cargo test, go test, or zig build test, you simply pass the package name and raiku test figures out the right runner automatically. It resolves the package’s cache directory, selects the first available test runner for the package’s language (in priority order), and streams the test output directly to your terminal. The exit code mirrors the test runner’s, making raiku test suitable for use in CI pipelines.
Usage
Arguments
| Argument | Description |
|---|---|
PACKAGE | Name of the installed package to test |
Flags
| Flag | Default | Description |
|---|---|---|
--version | latest installed | Test a specific installed version of the package |
--runner | auto-detected | Override the test runner command (space-separated, e.g. pytest -x) |
Auto-Detection by Language
raiku test tries each runner in the priority order shown below, using shutil.which to check whether the binary is available on the host system:
| Language | Priority | Runner | Command |
|---|---|---|---|
| Python | 1 | pytest | pytest -v |
| Python | 2 | unittest | python -m unittest discover -v |
| Rust | 1 | cargo test | cargo test |
| C | 1 | make test | make test |
| C++ | 1 | ctest | cmake --build build --target test |
| C++ | 2 | cmake | ctest --test-dir build -V |
| Zig | 1 | zig build test | zig build test |
| Java | 1 | mvn | mvn test -q |
| Java | 2 | gradle | gradle test |
| C# | 1 | dotnet test | dotnet test |
| Go | 1 | go test | go test ./... |
raiku test prints a helpful message and suggests installing the appropriate toolchain or using --runner to specify a custom command.
Run
raiku doctor to verify that all test tools for your languages are installed and accessible. raiku doctor --language Python shows the specific status of Python tooling.Behavior
- Tests run inside the package’s cache directory (
~/.raiku/cache/<Language>/<name>/<version>/). - The runner and full command are printed before execution so you know exactly what is being run.
raiku testexits with the test runner’s exit code, so$?reliably indicates pass or fail.- If multiple versions of a package are installed, the latest is used unless
--versionis specified.