Commit 7c5282f
committed
Skip tests tagged as document: false on doc gen
When running the below command to re-generate API docs:
RAILS_ENV=test rake docs:generate
it will execute every single rspec test under 'spec/acceptance/**/*_spec.rb'.
It *even* executes the tests that are explicitly marked as:
document: false
With this update, only the rspec tests that contribute to the generation of
API documentation will be executed by default.
Aside: For our team, this reduced the amount of tests being executed during
docs generation down from 195 to 37.1 parent 81e5c56 commit 7c5282f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
0 commit comments