Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run tests locally per README instructions #331

Open
jrochkind opened this issue Jan 11, 2021 · 1 comment
Open

Can't run tests locally per README instructions #331

jrochkind opened this issue Jan 11, 2021 · 1 comment

Comments

@jrochkind
Copy link
Contributor

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.

@elrayle
Copy link
Contributor

elrayle commented Jan 12, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants