mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-24 18:33:22 +00:00
9526363152
* Build each crate's integration tests as one binary Every tests/*.rs file is its own executable that links the whole crate graph. Move each crate's test files into tests/it/ as modules of one tests/it/main.rs, for apps/pdfcraft, apps/pdfcraft-cli, automation, cos, crypt, engine, render, sign and ui-egui. ui-egui's ui_group binary and the support modules move into tests/it/ too. Crates with a single test file keep it. The test executables go from 150 to 52, and every crate runs the same number of tests as before. ui-egui perf keeps its own binary (own process): its frame-time budgets would charge each measurement for the other tests running beside it. What the move needs: - include_str!/include_bytes! and #[path] paths gain one "../". - ui-egui: one GPU lock in tests/it/main.rs replaces the five per-file ones (content, document_links, editing, fill_sign, view), so one process creates one wgpu device at a time. The drop-line test in ui.rs and the screenshot blocks behind PDFCRAFT_*_SHOT(S) and CRAFT_UI_DOCKING_DIR, which render without holding it, take it too. - pdfcraft winit_wayland_scroll: the vendored winit source it compiles names crate::event, so that shim lives in main.rs. - parity evidence names the new paths. * Name the one-binary test paths in docs and comments - READMEs, docs, ATTRIBUTION and source comments name tests/it/<file>.rs. - The oracle README's example filters with --test it encryption::qpdf_agrees. - pdfcraft's GPU lock comment points at the UI tests' shared lock in crates/ui-egui/tests/it/main.rs.
25 lines
377 B
Rust
25 lines
377 B
Rust
//! The crate's integration tests, linked into one test binary.
|
|
|
|
mod audit;
|
|
mod automation_roots;
|
|
mod batch;
|
|
mod check;
|
|
mod edit;
|
|
mod extract;
|
|
mod help;
|
|
mod info_standards;
|
|
mod mcp_compact;
|
|
mod options;
|
|
mod owner_password;
|
|
mod render;
|
|
mod root_arguments;
|
|
mod run_report;
|
|
mod run_root;
|
|
mod split;
|
|
mod stderr;
|
|
mod stdout;
|
|
mod text;
|
|
mod ui_control;
|
|
mod version_resource;
|
|
mod xfa;
|