Testing Guide
Pre-requisites
Ensure you have the following installed:
Make sure you have the same mdbook version installed as the one used in the project.
You can find the version in the Cargo.toml
file under the [dependencies]
section.
Test Suite Overview
mdbook-embedify covering these critical modules:
Module | Coverage |
---|---|
Book Testing | Real book building and validation |
Parser Testing | Placeholder & embed syntax parsing |
Language Detection | File extension to language mapping |
Quick Commands
# Run complete test suite
cargo test
# Run specific test suites
cargo test --test book
cargo test --test parser
cargo test --test detect_lang
# Run tests quietly
cargo test -- --quiet
# Run with detailed output
cargo test -- --nocapture
# Run tests with timing information
cargo test -- --show-output