How to run Ruby specs?

I branched a ruby ​​stone and made some updates. I need to run gem tests and add my new tests and ensure that all tests are successful.

A ruined ruby ​​stone uses rspec tests. How to run this test?

+8
ruby rubygems rspec
source share
1 answer

Usually, rake enough to run all the tests, regardless of whether they are RSpec, cucumber, etc. If you want to call RSpec, try running the rspec spec instead, or if the stone uses a custom named test directory, just use rspec <directory_name> .

Note. . Most of the new gems these days use the Bundler to manage dependencies, so if you don’t have the appropriate dependencies and have a Gemfile in the root, then run “bundle install” first to get them. Then run with bundle exec ... (e.g. bundle exec rspec spec ).

+4
source share

All Articles