-
Notifications
You must be signed in to change notification settings - Fork 60
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
Running single tests cases #9
Comments
I was able to hack something together to make this work with Anyone know if RSpec supports this kind of behaviour? |
RSpec supports sending a single file. Typically the specs have
|
Looks like RSpec supports this as either a line number ( |
I created a branch that makes it possible for RSpec users to run a single example by adding a line number. The problem is that I'm not sure if this is the right way to go - it's very Rspec-centric, and as such, it does not enable any future extending (for TestUnit/Shoulda user, for example). I have tried several other ways how to enable this (like not checking if the files exist, etc), but they all ended up being very complex and just impractical. What do you think? |
What if all options are blindly passed to the tests? |
@matthuhiggins Can you please provide some example of what you mean? |
In test/unit, autorun is enabled by default. It is implemented here: http://ruby-doc.org/stdlib-1.9.3/libdoc/test/unit/rdoc/Test/Unit/Runner.html#method-c-autorun. ARGV is passed in, where the "-n test_name" logic takes place. I was thinking that "spin push" could pass all those arguments to "spin serve", and spin serve would set ARGV. |
@matthuhiggins that was the hack that I mentioned a while back, it does indeed work, but I haven't implemented the logic to actually pass the arguments yet. Anyone else tried? |
I changed just the line 199 to |
@maprihoda patch? |
Unfortunately, with |
There is a chance that this functionality will be? |
you can take a look at zeus, the basic implementation + run-by-line-number support is there |
The text was updated successfully, but these errors were encountered: