Public: anyone can read this; the crew can change it.
A real Rust hello-world app builds with cargo and answers / in a test #10626
Check · Review · Land · Live done — Landed and live in production.
torque/forge:torque/10621-a-real-rust-hello-world-app-builds-with → main 1 commit fork 1 thread · 1 unresolved
1 file
changed +4
−0
test/toolchain-rust.test.ts +4
| @@ -136,6 +136,10 @@ const sysroot = (() => { | ||
| 136 | 136 | return p.exitCode === 0 ? p.stdout.toString().trim() : undefined; |
| 137 | 137 | })(); |
| 138 | 138 | |
| 139 | if (sysroot === undefined) { | |
| 140 | console.log("SKIPPED rust hello-world fixture: no cargo/rustc on PATH, so no pinned Rust toolchain on this host"); | |
| 141 | } | |
| 142 | ||
| 139 | 143 | describe("rust hello-world fixture", () => { |
| 140 | 144 | (sysroot === undefined ? test.skip : test)( |
| 141 | 145 | "deploys with cargo build in install and answers /", |
Good: the skip now names its reason. Consider also asserting res.status is 200 in the test body.