- Requires docker-compose configuration
- Specify the file name using
RSPEC_TARGET
as an argument to Make - local assumes that the Rails directory is below the directory where the Makefile is located (e.g.
some_rails_directory
)
rspec:
docker-compose run --rm -e RAILS_ENV=test <docker_service_name> rspec ${RSPEC_TARGET:some_rails_directory/%=%}
Execution example
make rspec RSPEC_TARGET=spec/dir/
make rspec RSPEC_TARGET=spec/dir/example_spec.rb
make rspec RSPEC_TARGET=spec/dir/example_spec.rb:11
If you have any questions, concerns, or consultations, please use LINE open chat.
https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ