Karva (0.0.1-alpha.1)
[!NOTE]
Sadly, this will not be very well maintained and should not be used for anything important. I wanted to see if I could make a better
pytest. But unless I completely diverge from the current architecture and basically start again, and try to make a betterpytest-xdist, the performance of this will not be much better thanpytest, let alonepytest-xdist.Thanks for taking an interest! Perhaps I will have a proper go at this in the future.
A Python test framework, written in Rust.
About Karva
Karva aims to be an efficient alternative to pytest and unittest.
While we do not yet support all of pytest's features, we aim to gradually add support for pytest alternatives as we add features.
Getting started
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 | |
Usage
By default, Karva will respect your .gitignore files when discovering tests in specified directories.
To run your tests, try any of the following:
| Bash | |
|---|---|
1 2 3 4 5 6 7 8 | |
Example
Here is a small example usage
| tests/test.py | |
|---|---|
1 2 3 4 5 6 7 8 9 10 | |
Running karva:
| Bash | |
|---|---|
1 | |
Provides the following output:
| Text Only | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
Contributing
Contributions are welcome! See CONTRIBUTING.md for more information.
You can also join us on Discord