summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-24 18:13:24 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-24 18:32:41 +0900
commit04a55763fac6c7ec5765733760a67483e013eea9 (patch)
treef894ac1e7fcf79f3019527eee4d54cab34d3755d /doc
parent9fb20711fd4c4c452b1b7391a8ca86a4d82f6b90 (diff)
[DOC] Split "How to run a part of the test suite" [ci skip]
Diffstat (limited to 'doc')
-rw-r--r--doc/make_cheatsheet.md19
1 files changed, 16 insertions, 3 deletions
diff --git a/doc/make_cheatsheet.md b/doc/make_cheatsheet.md
index e01eb2d001..80fe1cfec5 100644
--- a/doc/make_cheatsheet.md
+++ b/doc/make_cheatsheet.md
@@ -52,22 +52,35 @@ $ make test-spec MSPECOPT=-Vfs
## How to run a part of the test suite
+### Runs a directory
```
-# Runs a directory
$ make test-all TESTS=test/rubygems
$ make test-all TESTS=rubygems
+```
-# Runs a file
+### Runs a file
+```
$ make test-all TESTS=test/ruby/test_foo.rb
$ make test-all TESTS=ruby/foo
+```
-# Runs a test whose name includes test_bar
+### Runs a test whose name includes test_bar
+```
$ make test-all TESTS="test/ruby/test_foo.rb -n /test_bar/"
```
+### Runs a ruby-spec directory
+```
+$ make test-spec MSPECOPT=spec/ruby/core/foo
+```
+
+### Runs a ruby-spec file
```
$ make test-spec MSPECOPT=spec/ruby/core/foo/bar_spec.rb
+```
+### Runs a bundler spec file
+```
$ make test-bundler BUNDLER_SPECS=commands/exec_spec.rb:58
```