| name | run-tests |
| description | Run the test suite and report results |
| license | MIT OR Apache-2.0 |
Run Tests
Execute the skilo test suite and analyze results.
Test Commands
cargo test
cargo test -- --nocapture
cargo test test_name
cargo test skill::validator
Test Organization
Tests are organized as follows:
| Location | Description |
|---|
src/*/tests.rs | Unit tests inline with modules |
tests/ | Integration tests |
Writing Tests
When adding new functionality:
- Add unit tests for individual functions
- Add integration tests for CLI commands
- Use
tempfile for tests that need filesystem access
- Use
assert_cmd for testing CLI behavior
Example
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_example() {
assert!(true);
}
}