Skip to content

Commit 1f8d1ac

Browse files
justin808claude
andcommitted
Document bin/ci-run-failed-specs in CLAUDE.md
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 2e14618 commit 1f8d1ac

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

CLAUDE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,34 @@ Failed CI jobs:
8080
8181
Will run the following commands:
8282
• dummy-app-integration-tests: bundle exec rake run_rspec:all_dummy
83+
84+
💡 Tip: For RSpec failures, you can run specific failing examples:
85+
1. Go to the failed job on GitHub Actions
86+
2. Copy the 'Failed examples:' section
87+
3. Run: pbpaste | bin/ci-run-failed-specs
88+
```
89+
90+
#### Run Only Failed Examples (Even More Targeted!)
91+
92+
When RSpec tests fail, run just those specific examples:
93+
94+
```bash
95+
# Copy failure output from GitHub Actions, then:
96+
pbpaste | bin/ci-run-failed-specs
97+
98+
# Or pass spec paths directly:
99+
bin/ci-run-failed-specs './spec/system/integration_spec.rb[1:1:1:1]'
100+
101+
# Or from a file:
102+
bin/ci-run-failed-specs < failures.txt
83103
```
84104

105+
This script:
106+
- 🎯 **Runs only failing examples** - not the entire test suite
107+
- 📋 **Parses RSpec output** - extracts spec paths automatically
108+
- 🔄 **Deduplicates** - removes duplicate specs
109+
- 📁 **Auto-detects directory** - runs from spec/dummy when needed
110+
85111
#### Smart Test Detection
86112

87113
```bash

0 commit comments

Comments
 (0)