Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RSpec list all pending examples

I'm using Rspec to test a rails app.

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

like image 663
deb Avatar asked Nov 02 '11 15:11

deb


1 Answers

For rspec 3.9, spec --dry-run is what I wanted.

me@host> bundle exec rspec -v
RSpec 3.9
  - rspec-core 3.9.2
  - rspec-expectations 3.9.1
  - rspec-mocks 3.9.1
  - rspec-rails 4.0.0.beta3
  - rspec-support 3.9.3

me@host> bundle exec rspec spec --dry-run
Randomized with seed 17761
...........................****..............................................................................................................................................................................*******................................................................................................................*****.*.*...................................................................................................................

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Klass completed
     # Not yet implemented
     # ./spec/models/klass.rb:79

  2) Klass completed with errors
     # Not yet implemented
     # ./spec/models/klass.rb:103
like image 67
spyle Avatar answered Oct 29 '22 10:10

spyle