Installation
Karva is available as karva on PyPI.
Use karva directly with uvx:
| Bash | |
|---|---|
1 2 | |
Or install karva with uv, or pip:
| Bash | |
|---|---|
1 2 3 4 5 6 7 8 | |
Once installed, you can use karva to run your tests:
| Bash | |
|---|---|
1 | |
Or to get the version of karva you're using:
| Bash | |
|---|---|
1 | |
Shell autocompletion
Karva supports autocompletion for most shells. A shell-specific completion
script can be generated by uv run karva generate-shell-completion <SHELL>,
where <SHELL> is one of bash, elvish, fish, nushell, powershell, or
zsh.
Tip
You can run echo $SHELL to help you determine your shell.
To enable shell autocompletion for Karva, run one of the following:
| Bash | |
|---|---|
1 | |
| Bash | |
|---|---|
1 | |
| Bash | |
|---|---|
1 | |
| Bash | |
|---|---|
1 | |
| PowerShell | |
|---|---|
1 2 3 4 | |
| Text Only | |
|---|---|
1 2 | |
Then restart the shell or source the shell config file.