Project Non-Goals
Karva does not plan to support the features below. Other pytest features may also be unsupported; absence from this list does not mean support is planned.
Class-Based Tests
Karva will not collect or run class-based tests.
Unsupported patterns include:
class TestSomething:withtest_*methodsunittest.TestCasesubclasses- xUnit-style
setup_method,teardown_method,setup_class, andteardown_class - class-scoped fixture behavior
Use module-level test functions and fixtures instead:
| test_service.py | |
|---|---|
1 2 3 4 5 6 7 8 9 10 | |
Classes are still fine as application code or local helpers inside tests. Only classes as the test structure are out of scope.
Pytest Request Internals
Karva will not expose pytest's request fixture or the FixtureRequest API.
Unsupported patterns include:
request.paramrequest.getfixturevalue(...)request.addfinalizer(...)request.node,request.config, and other pytest collection internalspytestconfigpytest_generate_tests
Use explicit fixture dependencies, generator fixtures, and normal configuration inputs instead:
| test_database.py | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 | |
Pytest Plugin Compatibility
Karva does not support pytest plugins or hooks. Common plugin features may be built into Karva directly.