I have forked a ruby gem and made some updates. I need to run the gem tests and add my new tests and ensure all tests are succeeding.
The forked ruby gem is using rspec tests. How can I run these test?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Usually
rakeis sufficient to run all the tests, regardless of whether they’re RSpec, Cucumber, etc. If you want to invoke RSpec directly try runningrspec specinstead, or if the gem is using an unconventionally named test directory, just userspec <directory_name>.Note: Most new gems these days use Bundler to manage dependencies, so if you don’t have the appropriate dependencies and there’s a Gemfile in the root, then run “bundle install” first to get them. Then run with
bundle exec ...(e.g.,bundle exec rspec spec).