diff --git a/AGENTS.md b/AGENTS.md index ecd97e9..984ee94 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,6 +11,11 @@ After **any** code change, always run these two commands and fix any errors befo 1. `just validate` — type-checks the TypeScript source without emitting output 2. `just toolbox test-all` — builds and runs all integration tests inside the Fedora toolbox, printing a pass/fail summary +To read only the relevant output from the test run (pass/fail summary): +```sh +just toolbox test-all 2>&1 | grep -E "PASS:|FAIL:|Results:" +``` + Do not leave a task incomplete if either command reports errors or failures. ## Commands diff --git a/justfile b/justfile index 068be90..a9a7f1b 100644 --- a/justfile +++ b/justfile @@ -14,10 +14,11 @@ build: deps yarn build cp metadata.json dist/ cp -r data/schemas dist/ 2>/dev/null || true + glib-compile-schemas dist/schemas/ cp -r data/icons dist/ 2>/dev/null || true just compile-mo -package: +package: build #!/usr/bin/env bash set -e mkdir -p dist/target @@ -165,6 +166,19 @@ toolbox action *args: toolbox rm --force {{ toolbox_name }} echo "Toolbox '{{ toolbox_name }}' removed." ;; + "test") + just package + EXT="dist/target/{{ uuid }}.shell-extension.zip" + SCRIPT="{{ args }}" + if [ -z "$SCRIPT" ]; then + echo "Usage: just toolbox test