A
A
Anton Ivanov2018-12-14 15:46:25
rspec
Anton Ivanov, 2018-12-14 15:46:25

How to run rspec tests in a docker container from RubyMine?

Hello.

I'm starting a new project and decided to finally master Docker.
I figured out docker-compose, made images for the application and the database.

But then the question arose of how to run rspec tests. I can, of course, run them via docker-compose run --rm -e "RAILS_ENV=test" app bin/rspec, but I want to use RubyMine, because there is a very convenient interface, the ability to run tests one by one, and so on.

I did not find such an opportunity right off the bat. A Google search didn't turn up anything definitive either.

Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
crmMaster, 2018-12-14
@Fly3110

You can try to run rvm on docker, and in rubymine just connect to it and use the docker environment to run the tests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question