questioning_authority icon indicating copy to clipboard operation
questioning_authority copied to clipboard

Can't run tests locally per README instructions

Open jrochkind opened this issue 4 years ago • 1 comments

README instructions under Developer notes suggest to me I should be able to run tests locally with:

  • fresh checkout
  • bundle install
  • rake ci

However, trying to do this gives me this error:

NoMethodError: undefined method `version' for nil:NilClass
/Users/jrochkind/.gem/ruby/2.6.6/gems/engine_cart-2.3.0/lib/engine_cart/tasks/engine_cart.rake:62:in `block (3 levels) in <top (required)>'
/Users/jrochkind/.gem/ruby/2.6.6/gems/engine_cart-2.3.0/lib/engine_cart/tasks/engine_cart.rake:30:in `block (2 levels) in <top (required)>'
/Users/jrochkind/.gem/ruby/2.6.6/gems/engine_cart-2.3.0/lib/engine_cart/tasks/engine_cart.rake:113:in `block (2 levels) in <top (required)>'
/Users/jrochkind/.gem/ruby/2.6.6/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
Tasks: TOP => engine_cart:create_test_rails_app
(See full trace by running task with --trace)

Ruby 2.6.6.

jrochkind avatar Jan 11 '21 17:01 jrochkind

I run QA tests using the following steps…

  • clone
  • bundle
  • create engine cart app - bundle exec rake engine_cart:generate
  • run tests - bundle exec rspec

I use this same process to test Hyrax. I haven’t used the rake tasks to run tests. I have more control of what I run by using this approach. The rake instructions pre-date me, so I’ll have to look at them and see if the docs or rake task need to be updated.

elrayle avatar Jan 12 '21 14:01 elrayle