From 94bf5c39af0d8d0a9a15db240d5d46383ec22160 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 5 Nov 2025 12:46:02 +0000 Subject: Fix cargo test invocation in test-ngit-relay.sh and documentation - Changed from 'cargo test --lib test_grasp01_nostr_relay_against_relay' to 'cargo test --lib -- --ignored --nocapture' - This correctly runs ALL library tests marked with #[ignore], not just GRASP-01 - Updated AGENTS.md and grasp-audit/README.md with correct commands - Added examples showing both 'run all ignored tests' and 'run specific test' patterns --- grasp-audit/test-ngit-relay.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'grasp-audit/test-ngit-relay.sh') diff --git a/grasp-audit/test-ngit-relay.sh b/grasp-audit/test-ngit-relay.sh index bd4b155..ff6ac1a 100755 --- a/grasp-audit/test-ngit-relay.sh +++ b/grasp-audit/test-ngit-relay.sh @@ -195,12 +195,13 @@ elif [ "$MODE" = "test" ]; then # Run cargo test suite # - RELAY_URL: Environment variable tests use to connect # - --lib: Only library tests (not integration tests in tests/) - # - test_grasp01_nostr_relay_against_relay: Specific test module # - --ignored: Run tests marked with #[ignore] (these need relay) # - --nocapture: Show println! output from tests + # This runs all library tests marked with #[ignore], including: + # - test_grasp01_nostr_relay_against_relay (GRASP-01 relay tests) + # - Any other integration tests requiring a relay RELAY_URL="ws://localhost:$PORT" cargo test \ - --lib test_grasp01_nostr_relay_against_relay \ - -- --ignored --nocapture || { + --lib -- --ignored --nocapture || { echo "⚠️ Some tests failed" echo " Review output above for details" } -- cgit v1.2.3