【发布时间】:2014-01-21 12:58:36
【问题描述】:
有没有办法(可能是一些关键)告诉 rspec 跳过挂起的测试并且不打印有关它们的信息?
我有一些自动生成的测试,比如
pending "add some examples to (or delete) #{__FILE__}"
我运行“bundle exec rspec spec/models --format 文档”并得到如下内容:
Rating
allows to rate first time
disallow to rate book twice
Customer
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)
......
我想保留这些文件,因为我稍后会更改它们,但现在我想要输出如下:
Rating
allows to rate first time
disallow to rate book twice
Finished in 0.14011 seconds
10 examples, 0 failures, 8 pending
【问题讨论】: