Reputation: 2310
The CLI command I use to run the file is:
bin/rspec ryanf_test_spec.rb
I would like to debug this file.
I use: Ruby mine & docker has to be up & running for this to work (docker-compose up
).
Upvotes: 1
Views: 435
Reputation: 51169
You can configure the Ruby interpreter in the container as a "remote" SDK via Languages & Frameworks / Ruby SDK and Gems by selecting Docker
as the server type and your docker-compose.yml
as the configuration file—see the remote interpreter docs, as noted in Olivia's comment.
Note that if you haven't built the stack yet, you may get a "This job has not yet completed" error that prevents you from closing the dialog and saving the configuration. Building the stack (with docker compose build
) and then re-selecting the configuration file seems to fix that.
I've also had better luck starting the stack myself with docker compose up
than trying to have RubyMine do it for me (like, RubyMine wedged during bundle install
/ indexing / etc); you may want to do that before creating the run configuration, rather than just build
.
Upvotes: 0