Desktop app for designing parametric 3D models in CadQuery together with the coding agent of your choice
TypeScript 3d-modeling3d-printing3d-printing-toolsagentagentic-aiai-cadcadcadqueryclaude-codecodexelectronfemllmmacdmakeropencodeparametric-designpythonsteptext-to-cad
Tests: animation und fem nur mit test:all, Suite updates
Kai-Jungsthoefel37d4bfe6498a
diff --git a/app/package.json b/app/package.jsonindex bf6930d..9411973 100644--- a/app/package.json+++ b/app/package.json@@ -28,12 +28,14 @@"test:packages": "npm run build && node test/packages.mjs","test:settings": "npm run build && node test/settings.mjs","test:tutorial": "npm run build && node test/tutorial.mjs",+ "test:updates": "npm run build && node test/updates.mjs","test:unit": "node test/unit.mjs","test:buildlock": "node test/buildlock.mjs","help:shots": "npm run build && node test/helpshots.mjs","dist": "npm run build && electron-builder --config electron-builder.config.cjs --publish never","dist:dir": "npm run build && electron-builder --config electron-builder.config.cjs --publish never --dir",- "test": "npm run build && node test/run-all.mjs"+ "test": "npm run build && node test/run-all.mjs",+ "test:all": "npm run build && node test/run-all.mjs --all"},"dependencies": {"@codemirror/autocomplete": "^6.20.3",diff --git a/app/test/run-all.mjs b/app/test/run-all.mjsindex a1a50a6..3239725 100644--- a/app/test/run-all.mjs+++ b/app/test/run-all.mjs@@ -1,6 +1,8 @@// Führt die Testdateien parallel aus. Jede App-Suite bekommt einen freien Port vom System (SOMA_TEST_PORT), damit sich// parallele Läufe und andere Sessions nicht gegenseitig die App fernsteuern. Die Ausgabe einer Suite erscheint am Stück,// sobald sie fertig ist. Aufruf: npm test (baut vorher). Einzelne Suiten: node test/run-all.mjs smoke editor.+// Langsame Suiten (Animation, FEM, je etwa 6 Minuten) laufen nur mit --all (npm run test:all) oder ausdrücklich genannt:+// Sie betreffen wenige Dateien und verdoppelten sonst die Dauer jedes Laufs.// SOMA_TEST_JOBS legt fest, wie viele gleichzeitig laufen (Standard 4; 1 = nacheinander wie früher).// Parallel läuft jede Suite langsamer, deshalb ist ihr Watchdog länger (15 statt 6 Minuten, SOMA_TEST_WATCHDOG_S).import { spawn } from 'node:child_process';@@ -9,11 +11,15 @@ import path from 'node:path';const DIR = import.meta.dirname;// Längste zuerst, damit sie nicht am Ende allein laufen-const ALL = ['animation', 'fem', 'versions', 'smoke', 'editor', 'skills', 'params', 'explode', 'fasteners', 'drawing', 'drawview', 'section', 'measure', 'groups', 'dxf', 'packages', 'settings', 'tutorial', 'buildlock', 'unit'];-const wanted = process.argv.slice(2);+const ALL = ['animation', 'fem', 'versions', 'smoke', 'editor', 'skills', 'params', 'explode', 'fasteners', 'drawing', 'drawview', 'section', 'measure', 'groups', 'dxf', 'packages', 'settings', 'tutorial', 'updates', 'buildlock', 'unit'];+const SLOW = ['animation', 'fem'];+const args = process.argv.slice(2);+const all = args.includes('--all');+const wanted = args.filter((a) => a !== '--all');const unknown = wanted.filter((s) => !ALL.includes(s));if (unknown.length) { console.log(`Unbekannte Suite: ${unknown.join(', ')}. Vorhanden: ${ALL.join(', ')}`); process.exit(2); }-const suites = wanted.length ? ALL.filter((s) => wanted.includes(s)) : ALL;+const suites = wanted.length ? ALL.filter((s) => wanted.includes(s)) : all ? ALL : ALL.filter((s) => !SLOW.includes(s));+const skipped = wanted.length || all ? [] : SLOW;const jobs = Math.max(1, Number(process.env.SOMA_TEST_JOBS) || 4);function freePort() {@@ -58,5 +64,6 @@ for (const r of results.sort((a, b) => ALL.indexOf(a.name) - ALL.indexOf(b.name)console.log(`${r.code === 0 ? 'OK ' : 'FEHLER '}${r.name.padEnd(12)}${fmt(r.ms).padStart(7)} ${r.checks} OK${r.fails ? `, ${r.fails} FEHLER` : ''}${r.code !== 0 && !r.fails ? `, Exit ${r.code}` : ''}`);}const bad = results.filter((r) => r.code !== 0);+if (skipped.length) console.log(`\nNicht gelaufen (langsam): ${skipped.join(', ')}. Alle mit npm run test:all`);console.log(bad.length ? `\n${bad.length} Suite(n) fehlgeschlagen: ${bad.map((r) => r.name).join(', ')}` : '\nALLE SUITEN BESTANDEN');process.exit(bad.length ? 1 : 0);