简体   繁体   中英

Is there any way to run a single test in ruby under spec/features/abc_spec.rb 'header details'?

Is there any way to run a single test in ruby under spec/features/abc_spec.rb 'header details' ? Ex:

rake test:features spec/features/abc_spec.rb 'header details'

Since you're using rspec, there are a few ways to run a single test. First, you can just specify the line of the test bundle exec rspec ./spec/features/abc_spec.rb:xx where xx represents the line number of 'header details'. OR You can create tags which is spelled out here in the Rspec docs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM