Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4631

How to tell rspec to run without pending tests output?

$
0
0

Is there a way (maybe some key) to tell rspec to skip pending tests and don't print information about them?

I have some auto generated tests like

pending "add some examples to (or delete) #{__FILE__}"

I run "bundle exec rspec spec/models --format documentation" and get somethin like this:

Rating  allows to rate first time  disallow to rate book twiceCustomer  add some examples to (or delete) /home/richelieu/Code/first_model/spec/models/customer_spec.rb (PENDING: No reason given)Category  add some examples to (or delete) /home/richelieu/Code/first_model/spec/models/category_spec.rb (PENDING: No reason given)......

I want to keep this files, cause I gonna change them later, but for now I want output like:

Rating  allows to rate first time  disallow to rate book twiceFinished in 0.14011 seconds10 examples, 0 failures, 8 pending

Viewing all articles
Browse latest Browse all 4631

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>