Commit 8737b6e
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 new rake task, only the rspec tests that contribute to the generation of
API documentation will be executed:
RAILS_ENV=test rake docs:generate:skip_undocumenting
Aside: For our team, this reduced the amount of tests being executed during
docs generation down from 195 to 37.1 parent 81e5c56 commit 8737b6e
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments