Open jrochkind opened 6 years ago
Aha, looks like bundle exec rake
works. Recommend adding that to README
.
Although I think I still have some failing tests on master doing that, may need additional instructions for additional setup to do?
On master fresh check-out, ruby 2.3.3, running bundle exec rake
results in 3 failures.
I can attempt to resolve these for Ruby 2.3.3, but please note that 2.3.7 is the latest in the 2.3.x series and appears to be scheduled to be EOL'd soon:
After this release, we will end the normal maintenance phase of Ruby 2.3, and start the security maintenance phase of it. This means that after the release of 2.3.7 we will never backport any bug fixes to 2.3 except security fixes. The term of the security maintenance phase is scheduled for 1 year. By the end of this term, official support of Ruby 2.3 will be over.
(https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/)
Regardless, the documentation should be updated.
I doubt these are unique to 2.3.7. (Although suggest you doc what ruby versions you support too). Let me test in 2.4 to see....
Actually having trouble doing that, I think maybe I need to clean out an engine_cart created app, since I created it in 2.3.3 and now want to switch to 2.4... it complains Your Ruby version is 2.4.3, but your Gemfile specified 2.3.3
, I suspect that's about a generated engine-cart app... but I'm having trouble finding it to delete it. So instructions on that would be great too.
Ah, it's an ./internal_test_app
, okay, deleting that, testing locally on 2.4.3....
Actually, confirm all tests pass on 2.4.3, so if you only want to support 2.4+, that would be fine (but should be documented). (But our app is still 2.3 and I suspect we're not alone...)
Apologies, I'm going to need to rely upon Travis for builds against Ruby/Rails releases (I'm attending a conference and wireless connectivity does not easily permit me to install and test releases). I can still see this through.
I don't see any reason it can't wait until after you return from conf. My suspicion was something was failing locally that wouldn't fail on travis, because I was missing some setup, but it may be that was totally wrong.
Confirmed failing tests in master as above on MRI 2.3.7 as well.
I think you either need to add 2.3.7 to travis testing (and get it to pass), or document that you only support 2.4+. But since 2.3.7 is not EOL and I suspect many community apps are still using it, I'd be happier with the former.
I do not know if test failures are from test infrastructure problems, or actual code problems.
Doc updates suggested regardless, as above.
Are there instructions for how to run tests in development? If not, can some be added to README?
If I try to run
bundle exec rspec
, I get: