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

Running system tests on Rails 5.2 #155

Closed
taq opened this issue Aug 10, 2018 · 3 comments
Closed

Running system tests on Rails 5.2 #155

taq opened this issue Aug 10, 2018 · 3 comments

Comments

@taq
Copy link

taq commented Aug 10, 2018

Hi!

Not sure if it's something related to this gem or to Guard itself, but ...
I have a Rails 5.2 app when there are some system tests. When running on Rails regular tests:

$ bundle exec rails test
Running: all tests

It runs ok, without my system tests. But when running with Guard and Minitest, I have:

$ bundle exec guard
20:16:33 - INFO - Guard::Minitest 2.4.6 is running, with Minitest::Unit 5.11.3!
20:16:33 - INFO - Running: all tests
Started with run options --guard --seed 39628

Notice the "Running: all tests". Then on some point the tests stops and I got an error like

Traceback (most recent call last):
/home/taq/.rvm/rubies/ruby-2.5.1/bin/ruby: no code specified for -e (RuntimeError)

Seems the system tests are running there, because when I remove the test/system dir it works ok.

Is there something I can configure on Guardfile to ignore the system test when running guard with Minitest?

Thanks!

@taq
Copy link
Author

taq commented Aug 23, 2018

Ok, nevermind, I think I can live with that.

@taq taq closed this as completed Aug 23, 2018
@fwolfst
Copy link

fwolfst commented Feb 26, 2020

Same for Rails 6 and I'd like to find an answer to that.

@szTheory
Copy link

szTheory commented Nov 9, 2020

@fwolfst The monkey-patch here worked for me #116 (comment)

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

No branches or pull requests

3 participants