diff options
Diffstat (limited to 'spec/README.md')
-rw-r--r-- | spec/README.md | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/spec/README.md b/spec/README.md index 6b82f8f06a..6a88c06e09 100644 --- a/spec/README.md +++ b/spec/README.md @@ -10,6 +10,14 @@ To run rspec for bundler: make test-bundler ``` +or run rspec with parallel execution: + +```bash +make test-bundler-parallel +``` + +If you specify `BUNDLER_SPECS=foo/bar_spec.rb` then only `spec/bundler/foo/bar_spec.rb` will be run. + # spec/ruby ruby/spec (https://github.com/ruby/spec/) is @@ -83,24 +91,24 @@ To run all specs: make test-spec ``` -Extra arguments can be added via `MSPECOPT`. +Extra arguments can be added via `SPECOPTS`. For instance, to show the help: ```bash -make test-spec MSPECOPT=-h +make test-spec SPECOPTS=-h ``` You can also run the specs in parallel, which is currently experimental. It takes around 10s instead of 60s on a quad-core laptop. ```bash -make test-spec MSPECOPT=-j +make test-spec SPECOPTS=-j ``` To run a specific test, add its path to the command: ```bash -make test-spec MSPECOPT=spec/ruby/language/for_spec.rb +make test-spec SPECOPTS=spec/ruby/language/for_spec.rb ``` If ruby trunk is your current `ruby` in `$PATH`, you can also run `mspec` directly: @@ -138,3 +146,15 @@ end ``` For more details, see `spec/ruby/CONTRIBUTING.md`. + +# spec/syntax_suggest + +## Running spec/syntax_suggest + +To run rspec for syntax_suggest: + +```bash +make test-syntax-suggest +``` + +If you specify `SYNTAX_SUGGEST_SPECS=foo/bar_spec.rb` then only `spec/syntax_suggest/foo/bar_spec.rb` will be run. |