| name | trace |
| description | Run scalpel trace against a test project and inspect the output |
Run Scalpel's trace command against a project or test fixture.
If arguments specify a language and fixture:
- For Node.js:
cargo run -p scalpel-cli -- trace --lang node -- node tests/fixtures/$ARGUMENTS/index.js
- For Python:
cargo run -p scalpel-cli -- trace --lang python -- python3 tests/fixtures/$ARGUMENTS/app.py
- For Go:
cargo run -p scalpel-cli -- trace --lang go -- go run tests/fixtures/$ARGUMENTS/main.go
If no arguments, run against the default test-project:
cargo run -p scalpel-cli -- trace -- node test-project/index.js
After tracing:
- Show the report output
- Analyze: How many files traced? What's the waste percentage?
- Check: Are the results reasonable for this project type?
- If genome was built, show stats:
cargo run -p scalpel-cli -- genome .scalpel/coverage