RSpec lists all pending examples

I am using Rspec to test the rails application.

Is there a way to list all pending examples without running a complete test suite?

+6
source share
2 answers

Run the rspec --tag pending

For example: bundle exec rspec spec --tag pending

+10
source

If you

 it 'does something' 

without the actual spec block for it, you can simply find them through your editor's search functions and regular expression capabilities:

 ^ *it{1} {1}('|").*{1}('|")\n 

To check regexp you can use http://rubular.com/ . It always helped me create regular expressions.

0
source

Source: https://habr.com/ru/post/900623/


All Articles