diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-06-15 23:42:31 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-06-16 00:42:48 -0600 |
| commit | ea49587dac7bafa041e9c885c4b933555179bed1 (patch) | |
| tree | 1959cdeaaa310d89fb75a745f0fcf56583a447ae /README.adoc | |
| parent | cf561cc6ee4e1a84a5cbdb87eb7592f01f498df8 (diff) | |
add option to keep output files of visual integration tests [skip ci]
Diffstat (limited to 'README.adoc')
| -rw-r--r-- | README.adoc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/README.adoc b/README.adoc index 2653e97a..c7998e9b 100644 --- a/README.adoc +++ b/README.adoc @@ -788,6 +788,10 @@ To disable the visual integration tests, pass the `` option: $ bundle exec rspec -t ~integration +If a visual integration test fails, you can instruct the test suite to keep the files in the [.path]_spec/output_ directory by setting the `DEBUG` environment variable: + + $ DEBUG=true bundle exec rspec -t integration + If you want to see the name of each test as it is run, add the `-fd` option: $ bundle exec rspec -fd @@ -801,11 +805,15 @@ Running tests using `rspec` directly gives you the advantage of being able to sp To run a single test, you can filter by the name of the test. For example, to run all tests that pertain to failures, use: - $ bundle exec rspec -e fail -fd + $ bundle exec rspec -e fail + +To run all tests that have `wip` in the name, use: + + $ bundle exec rspec -e wip You can also run all tests in a given file by passing the file's path to rspec: - $ bundle exec rspec -fd spec/toc_spec.rb + $ bundle exec rspec spec/toc_spec.rb For a full list of options that rspec provides, run `rspec -h`. |
