spin icon indicating copy to clipboard operation
spin copied to clipboard

Allow specifying RSpec command line options

Open brynary opened this issue 13 years ago • 3 comments

Spin will ignore any arguments passed to spin serve that are not paths to files:

https://github.com/jstorimer/spin/blob/72fbfc6ab6a1de48ffdcd0229488649f7ec4da05/bin/spin#L191

This is unfortunate, as it prevents passing RSpec options to spin serve. I propose spin support a way to send in ARGV options that get set as the ARGV in the forked process.

Maybe we could use this style:

spin push -- --color --profile --tag type:model

Thoughts?

brynary avatar Jan 30 '12 22:01 brynary

Makes sense to me. I like it.

jstorimer avatar Jan 31 '12 15:01 jstorimer

Is specifying rspec options in .rspec file and letting spin pick it up from there not the best option? or are you suggesting that spin should support both.

andhapp avatar Mar 19 '12 10:03 andhapp

I've cleaned up the bits for test unit from PR #45 to support this syntax with Rspec as well.

rosic avatar Jun 25 '12 20:06 rosic