-
Notifications
You must be signed in to change notification settings - Fork 0
Testing
Leonard Ramminger edited this page Aug 31, 2026
·
1 revision
- Unit tests in
#[cfg(test)]modules undersrc/ - Integration tests in
tests/ - Grouped module tests in
tests/modules/ - System tests in
tests/system_test.rs(install, load.pb, mock HTTP)
| Style | Use when |
|---|---|
MockApiClient (test-utils) |
No network; fast unit coverage |
mockito |
Real HTTP stack with mocked endpoints |
ffi_test |
C ABI integration (--test-threads 1) |
wasm-pack test |
Browser or Node WASM bindings |
Target: 85% or higher via tarpaulin:
make coverageCI runs coverage on every push to main and uses --test-threads 1 for integration tests.
When adding a command or YAML field:
- Parser test
- Model validation test
- Client or integration test if user-visible
Overview
Profiles
Integration
Project