Skip to content

Commit 29510dd

Browse files
zylaclaude
andcommitted
Auto-detect S3 credentials and skip tests with clear reporting
- Tests automatically skip when S3 environment variables are missing - Clear informative messages explain test execution (e.g. "Running 35/50 tests") - Provides guidance on enabling S3 tests when credentials are absent - Maintains backward compatibility with SKIP_S3_TESTS=1 override - Enables agentic workflows to use `stack test` without environment exports 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent bb41db1 commit 29510dd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.claude/settings.local.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"Bash(stack build:*)",
1111
"Bash(mkdir:*)",
1212
"Bash(git rev-parse:*)",
13-
"Bash(git remote get-url:*)"
13+
"Bash(git remote get-url:*)",
14+
"Bash(git rebase:*)"
1415
],
1516
"deny": [],
1617
"ask": []

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ stack build
2323

2424
### Running Tests
2525
```bash
26-
# Run all tests (auto-detects S3 credentials and skips S3 tests if missing)
26+
# Run tests (auto-detects S3 credentials and skips S3 tests if missing)
2727
stack test
2828

2929
# Run tests, skipping slow ones
3030
export SKIP_SLOW_TESTS=1
3131
stack test
3232

33-
# Run tests, explicitly skipping S3 tests (recommended if no local S3/minio)
33+
# Explicitly skip S3 tests even if credentials are present
3434
export SKIP_S3_TESTS=1
3535
stack test
3636

@@ -85,8 +85,8 @@ stack test --test-arguments --accept
8585
- The test suite includes integration tests that verify taskrunner behavior
8686
- **S3 Test Auto-Detection**: 15 tests require S3 credentials (marked with `# s3` directive in test files)
8787
- `stack test` automatically skips S3 tests if credentials are missing
88-
- Set `SKIP_S3_TESTS=1` to explicitly skip S3 tests even if credentials are available
8988
- To run S3 tests, set: `TASKRUNNER_TEST_S3_ENDPOINT`, `TASKRUNNER_TEST_S3_ACCESS_KEY`, `TASKRUNNER_TEST_S3_SECRET_KEY`
89+
- Use `SKIP_S3_TESTS=1` to explicitly skip S3 tests even when credentials are present
9090
- GitHub tests use a fake API server and don't require real GitHub credentials
9191
- The project uses Universum as an alternative Prelude
9292
- Build output and temporary files are in `.stack-work/`

0 commit comments

Comments
 (0)