dyna3/app-proto/src/tests.rs
Aaron Fenyes 992fb76419 Do the Trunk build check as an end-to-end test
This consolidates our whole CI workflow into `cargo test`.
2025-03-28 12:30:02 -07:00

14 lines
No EOL
468 B
Rust

use std::process::Command;
// build and bundle the application, reporting success if there are no errors or
// warnings. to see this test fail while others succeed, try moving `index.html`
// or one of the assets that it links to
#[test]
fn trunk_build_test() {
let build_status = Command::new("trunk")
.arg("build")
.env("RUSTFLAGS", "-D warnings")
.status()
.expect("Call to Trunk failed");
assert!(build_status.success());
}