[DOC] Split "How to run a part of the test suite" [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2020-04-24 18:13:24 +09:00
Родитель 9fb20711fd
Коммит 04a55763fa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7CD2805BFA3770C6
1 изменённых файлов: 16 добавлений и 3 удалений

Просмотреть файл

@ -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
```