-
Notifications
You must be signed in to change notification settings - Fork 505
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
"Web Console is activated in the test environment. This is usually a mistake." #729
Comments
Oh I just ran into another issue with Spring. I've patched Spring, I saw the comments in this issue, but it sounds like the only way to run parallel tests with Spring is by running I attempted to fork
So this is working without crashing and the tests pass, but it doesn't seem to provide any performance benefit. I think it's loading I also tried to "springify" the
And actually I just tried running EDITThis is also happening for the 'helper' rake tasks. I added
Also a similar RAILS_ENV issue to the one I mentioned above, because when I run EDIT 2OHHHHHHH I just saw #468 and #469, and I didn't realize that Spring was disabled by default unless I explicitly set EDIT 3Awesome, I saw that the code in my spring-commands-parallel-rspec gem actually runs first, so I'm able to call EDIT 4I realized that I could support all of the commands from |
I was previously just using
rspec
to run my tests, but I've just switched toparallel_tests
, and now I'm running into this error when I'm calling the rake task:My
Gemfile
does have theweb-console
gem in thedevelopment
group, but I think the initialrake
command assumes that the Rails env isdevelopment
so it loads all of the gems in this group.There's a few ways I can fix this:
parallel_rspec
command directlyRAILS_ENV=test rake parallel:spec
config.web_console.development_only = false
in my application configI think I'll just use the
parallel_rspec
command, but I was wondering how people normally resolve this issue? (And maybe something could be added to the README? I'm just not sure about the best solution.)The text was updated successfully, but these errors were encountered: