aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-02-09 21:40:16 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-02-09 21:40:16 +0900
commit26532c7e7793ecb7bcfaf2ac71425d1f0a84abe5 (patch)
treec75e0a38c9be755e0a41961f3740ab73e3309ff6
parentf3471174bb6e8c717c7b57e2a9b3f0e697eae183 (diff)
downloadruby-26532c7e7793ecb7bcfaf2ac71425d1f0a84abe5.tar.gz
doc/make_cheatsheet.md: add a memo about how to run one rubyspec file
-rw-r--r--doc/make_cheatsheet.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/make_cheatsheet.md b/doc/make_cheatsheet.md
index 29648e8174..f79d751bdc 100644
--- a/doc/make_cheatsheet.md
+++ b/doc/make_cheatsheet.md
@@ -64,6 +64,10 @@ $ make test-all TESTS=ruby/foo
$ make test-all TESTS="test/ruby/test_foo.rb -n /test_bar/"
```
+```
+$ make test-spec MSPECOPT=spec/ruby/core/foo/bar_spec.rb
+```
+
## How to measure coverage of C and Ruby code
You need to be able to use gcc (gcov) and lcov visualizer.