mirror of
https://github.com/nimbold/Firelink.git
synced 2026-07-28 13:00:10 +00:00
28 lines
837 B
Markdown
28 lines
837 B
Markdown
# Headless Download Engine Tests
|
|
|
|
Run the full Rust suite:
|
|
|
|
```sh
|
|
cd src-tauri
|
|
cargo test --all-targets
|
|
```
|
|
|
|
Run only the async download integration harness with deterministic serial
|
|
performance measurements and visible test output:
|
|
|
|
```sh
|
|
cd src-tauri
|
|
RUST_BACKTRACE=1 cargo test --test download_engine -- --test-threads=1 --nocapture
|
|
```
|
|
|
|
The harness binds an ephemeral loopback port and requires no GUI, external
|
|
network access, or bundled media binaries. It validates:
|
|
|
|
- aggregation of many streamed HTTP body chunks;
|
|
- pause and ranged resume through `DownloadCoordinator`;
|
|
- cancellation and partial-file cleanup;
|
|
- SHA-256 integrity after resume;
|
|
- retry recovery from transient HTTP failures;
|
|
- terminal error reporting after the retry budget is exhausted;
|
|
- a five-second local transfer performance budget for a 3 MiB fixture.
|