From 63a8706dcec0c933e093aec5ae35a84ca347a0b6 Mon Sep 17 00:00:00 2001 From: Brady Wied Date: Wed, 30 Mar 2016 13:27:23 -0600 Subject: [PATCH] Explain RSpec config options [skip ci] Will still work with RSpec runner/config code runs --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 73653cd1..8e4709d8 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,17 @@ To mutation test Rails models with rspec comment out ```require 'rspec/autorun'` RAILS_ENV=test bundle exec mutant -r ./config/environment --use rspec User ``` +Passing in RSpec Options +------------------------ + +**NOTE: Experimental** + +You can control some aspects of RSpec using the `SPEC_OPTS` environment variable as usual. If you want mutant to only pay attention to specs in a certain directory, you can run + +```sh +SPEC_OPTS="--pattern spec/subdir_only/**/*_spec.rb" mutant --use rspec SomeClass +``` + Limitations -----------