[57] check: robustness_web (Feature web) in npm run check, numpy für IFC-Mengenprüfung in CI; TODO und CLAUDE.md nachgeführt
This commit is contained in:
4 files changed
+11
-5
No files matched your search
+6
-1
@@ -2,6 +2,7 @@
|
||||
// Rust-Tests aller eigenständigen Crates. Bricht beim ersten Fehler ab.
|
||||
// npm run check alles
|
||||
// npm run check -- --fast nur tsc + vitest
|
||||
// Die IFC-Prüfungen in vitest (exportIfc.*.test.ts) laufen nur mit `pip install ifcopenshell numpy pytest` (sonst übersprungen).
|
||||
// `cargo fmt`/`clippy` sind noch nicht Teil des Checks: die Crates sind nie formatiert
|
||||
// worden (ein Reformat wäre ein Riesen-Diff) — eigener Schritt, s. docs/lessons-bimcraft.md.
|
||||
import { spawnSync } from "node:child_process";
|
||||
@@ -12,13 +13,17 @@ const steps = [
|
||||
{ name: "tsc", cmd: "npx", args: ["tsc", "--noEmit", "-p", "."] },
|
||||
{ name: "vitest", cmd: "npx", args: ["vitest", "run"] },
|
||||
...(fast ? [] : crates.map((c) => ({ name: `cargo test ${c}`, cmd: "cargo", args: ["test", "--quiet"], cwd: `src-tauri/${c}` }))),
|
||||
// [258] Robustheit der WASM-Bindungen: Feature `web` ist nicht Standard, `cargo test` allein überspringt den Test.
|
||||
...(fast ? [] : [{ name: "cargo test core robustness_web (web)", cmd: "cargo", args: ["test", "--quiet", "--features", "web", "--test", "robustness_web"], cwd: "src-tauri/core",
|
||||
// Release-Verhalten (WASM wrappt bei Überlauf): Debug-Überlaufprüfung würde Panics melden, die dort nicht vorkommen; spart zudem den Release-Build.
|
||||
env: { CARGO_PROFILE_DEV_OVERFLOW_CHECKS: "false" } }]),
|
||||
];
|
||||
|
||||
const t0 = Date.now();
|
||||
for (const s of steps) {
|
||||
const t = Date.now();
|
||||
process.stdout.write(`▶ ${s.name} … `);
|
||||
const r = spawnSync(s.cmd, s.args, { cwd: s.cwd, encoding: "utf8" });
|
||||
const r = spawnSync(s.cmd, s.args, { cwd: s.cwd, encoding: "utf8", env: { ...process.env, ...s.env } });
|
||||
const secs = ((Date.now() - t) / 1000).toFixed(1);
|
||||
if (r.status !== 0) {
|
||||
console.log(`FEHLER (${secs}s)\n`);
|
||||
|
||||
Reference in new issue
Block a user