642 B
642 B
Tests
This directory is organized as follows:
tests/unit/: fast unit tests with mockstests/integration/: optional integration tests that may requirepykeepassand a Python environmenttests/fixtures/: bundled KeePass databases and matching JSON credentials/content files
Conventions
- Use
*.test.tsfilenames. - Keep unit tests isolated and fast.
- Prefer mocking the Python bridge in unit tests.
- Put environment-dependent checks in
tests/integration/. - Keep fixture-driven expectations aligned with the matching
*.kdbx.jsonfile. - Integration tests should skip or self-report when prerequisites are missing.