Skip to content

Move test fixtures to cargo test#13

Merged
ryanorendorff merged 6 commits intomainfrom
cargo-test-fixtures
Oct 17, 2025
Merged

Move test fixtures to cargo test#13
ryanorendorff merged 6 commits intomainfrom
cargo-test-fixtures

Conversation

@ryanorendorff
Copy link
Contributor

Move test fixtures from manual mdbook builds to proper cargo tests. Add test-util feature flag to gate CheckCodePreprocessor test utilities so that the e2e tests can run without approval checking.

All tests can be run with cargo test --features test-util.

Move test fixtures from manual mdbook builds to proper cargo tests. Add
test-util feature flag to gate CheckCodePreprocessor test utilities so that the
e2e tests can run without approval checking.

All tests can be run with `cargo test --features test-util`.
Replace complex manual mdbook invocation with craneLib.cargoTest
that runs `cargo test --features integration-tests`. This single
check runs all tests (unit + integration) and properly handles
both valid_cases and error_cases fixtures.

Renamed from runE2ETests to mdbook-check-code-test for consistency
with other check names.
Update workflow to use new check name mdbook-check-code-test
instead of runE2ETests.
@ryanorendorff ryanorendorff merged commit c2e6383 into main Oct 17, 2025
5 checks passed
@ryanorendorff ryanorendorff deleted the cargo-test-fixtures branch October 17, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant