Skip to content

Commit

Permalink
Merge pull request mbj#731 from olleolleolle/patch-2
Browse files Browse the repository at this point in the history
README: bundle exec mutant invocations only
  • Loading branch information
mbj authored Jan 23, 2018
2 parents 23bd8bb + ec80e33 commit 766edf7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ Examples
```
cd virtus
# Run mutant on virtus namespace
mutant --include lib --require virtus --use rspec Virtus*
bundle exec mutant --include lib --require virtus --use rspec Virtus*
# Run mutant on specific virtus class
mutant --include lib --require virtus --use rspec Virtus::Attribute
bundle exec mutant --include lib --require virtus --use rspec Virtus::Attribute
# Run mutant on specific virtus class method
mutant --include lib --require virtus --use rspec Virtus::Attribute.build
bundle exec mutant --include lib --require virtus --use rspec Virtus::Attribute.build
# Run mutant on specific virtus instance method
mutant --include lib --require virtus --use rspec Virtus::Attribute#type
bundle exec mutant --include lib --require virtus --use rspec Virtus::Attribute#type
```

Rails
Expand All @@ -66,7 +66,7 @@ Passing in RSpec Options
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
SPEC_OPTS="--pattern spec/subdir_only/**/*_spec.rb" bundle exec mutant --use rspec SomeClass
```

Limitations
Expand Down Expand Up @@ -257,7 +257,7 @@ Only Mutating Changed Code
Running mutant for the first time on an existing codebase can be a rather disheartening experience due to the large number of alive mutations found! Mutant has a setting that can help. Using the `--since` argument, mutant will only mutate code that has been modified. This allows you to introduce mutant into an existing code base without drowning in errors. Example usage that will mutate all code changed between master and the current branch:
```
mutant --include lib --require virtus --since master --use rspec Virtus::Attribute#type
bundle exec mutant --include lib --require virtus --since master --use rspec Virtus::Attribute#type
```
Known Problems
Expand Down

0 comments on commit 766edf7

Please sign in to comment.