Testing
Rust Tests
cargo testPython Tests
pytestRun Specific Tests
cargo test test_snapshot_creationpytest tests/test_capture.py -k "test_basic"Writing Tests
Rust
#[cfg(test)]mod tests { use super::*;
#[test] fn test_snapshot_creation() { let snapshot = DecisionSnapshot::new(input, output, params); assert!(snapshot.id().len() > 0); }}Python
from briefcase import capture, DecisionSnapshot
def test_capture_creates_snapshot(): @capture() def my_fn(x): return x * 2
result = my_fn(5) assert result == 10Coverage
cargo tarpaulin --out htmlpytest --cov=briefcase --cov-report=html