ruby-changes:60891
From: Nobuyoshi <ko1@a...>
Date: Fri, 24 Apr 2020 18:33:35 +0900 (JST)
Subject: [ruby-changes:60891] 04a55763fa (master): [DOC] Split "How to run a part of the test suite" [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=04a55763fa From 04a55763fac6c7ec5765733760a67483e013eea9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 24 Apr 2020 18:13:24 +0900 Subject: [DOC] Split "How to run a part of the test suite" [ci skip] diff --git a/doc/make_cheatsheet.md b/doc/make_cheatsheet.md index e01eb2d..80fe1cf 100644 --- a/doc/make_cheatsheet.md +++ b/doc/make_cheatsheet.md @@ -52,22 +52,35 @@ $ make test-spec MSPECOPT=-Vfs https://github.com/ruby/ruby/blob/trunk/doc/make_cheatsheet.md#L52 ## 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 ``` -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/