File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,34 @@ Failed CI jobs:
8080
8181Will 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
You can’t perform that action at this time.
0 commit comments