From 50ce4ec2ddb8ec621a77d8773aa6df6d9e7441ff Mon Sep 17 00:00:00 2001 From: JJ Liebig Date: Sat, 5 Sep 2026 20:39:32 +0200 Subject: fix: run the full applicable test suite on windows (#3660) * fix: run the full applicable test suite on windows * test: remove redundant test shell assignment * test: make endpoint and metadata fixtures deterministic * test: tolerate exited servers during windows probe cleanup --- justfile | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'justfile') diff --git a/justfile b/justfile index 3cc6c03b..f69bb38c 100644 --- a/justfile +++ b/justfile @@ -1,4 +1,7 @@ # herdr task runner +set windows-shell := ["cmd.exe", "/d", "/s", "/c"] + +python := if os() == "windows" { "python" } else { "python3" } # Run tests test: @@ -11,21 +14,15 @@ test: # Run repository maintenance contract tests maintenance-test: - python3 -m unittest scripts.test_agent_detection_manifest_check scripts.test_changelog scripts.test_config_reference_check scripts.test_docs_translation_parity scripts.test_hermes_integration_asset scripts.test_package_windows_conpty scripts.test_preview scripts.test_unix_installer scripts.test_vendor_libghostty_vt scripts.test_vendor_portable_pty + {{python}} -m unittest scripts.test_agent_detection_manifest_check scripts.test_changelog scripts.test_config_reference_check scripts.test_docs_translation_parity scripts.test_hermes_integration_asset scripts.test_package_windows_conpty scripts.test_preview scripts.test_unix_installer scripts.test_vendor_libghostty_vt scripts.test_vendor_portable_pty # Run one nextest filter, e.g. `just test-one codex_stale_working` -[unix] test-one filter: cargo nextest run --locked "{{filter}}" --status-level fail --final-status-level fail --failure-output final --success-output never -[script("powershell.exe", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File")] -[windows] -test-one filter: - cargo nextest run --locked --bin herdr "{{filter}}" --status-level fail --final-status-level fail --failure-output final --success-output never - # Enforce deterministic UI hot-path architecture boundaries ui-hot-path-architecture-test: - python3 -m unittest scripts.test_ui_hot_path_architecture + {{python}} -m unittest scripts.test_ui_hot_path_architecture # Run fast local lint checks [unix] @@ -39,7 +36,6 @@ lint: & .\scripts\windows_check.ps1 -Mode lint # Run PR CI checks -[unix] ci filter='all()': lint cargo nextest run --locked -E "{{filter}}" --status-level fail --final-status-level slow --failure-output final --success-output never just maintenance-test @@ -72,12 +68,6 @@ install-hooks: @echo "installed git hooks from .githooks" # Build release binary -[unix] -build: - cargo build --release --locked - -[script("powershell.exe", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File")] -[windows] build: cargo build --release --locked @@ -92,7 +82,7 @@ bench-release-smoke: # Test public documentation snapshot and release lifecycle tooling docs-contract-test: - bun test scripts/docs/*.test.ts + bun test ./scripts/docs # Test bundled agent integration assets integration-assets-test: -- cgit v1.2.3