-
Notifications
You must be signed in to change notification settings - Fork 79
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
specifying URL query parameters in the jasmine_url option #174
Comments
That's a great idea. Let me see what I can work up. My current focus is on the jasmine-2 branch, but it's stalled temporarily while I wait for an upstream fix on Jasmine. I'll update here once I have something implemented so you can test it. Do you have a reference for the debug=false running faster? I'm not opposed to setting query parameters, I just hadn't heard of that before. Thanks for the suggestion |
It's mentioned in the section Asset Debugging in the Jasminerice readme. I have hundreds of javascript files in my project and running a single spec file with a single spec using I wasn't able to enable set |
As suggested in #174, allow specifying query_parameters for passing options to the specs. Adds a new option `:query_params`, which can be set to a hash that is url encoded and passed to the PhantomJS runner
@kbullaughey Took me a bit, but I've just implemented this. Please give it a whirl and let me know how it works for you. |
Hm...Seems I won't be able to test it yet because I haven't upgraded my specs to jasmine 2. Thanks for making this change! Just looking at the patch it looks like it should do the trick. Hopefully I'll get around to updating to jasmine 2 soon. I tried once before, but the new async strategy was causing problems with Ember. |
I'm pruning old issues I hope the new version worked for you, please open a new issue if you're still having problems |
Ah. No worries. I switched away from using Jasmine because QUnit was better supported for Ember at the time. Appologies for the dangling issue. |
I use jasminerice with guard-jasmine and the jasmine docs suggest that my specs will load much faster if I set debug=true in a query parameter:
Wanting to do this when running the specs with guard-jasmine I tried adding the following options:
However, this didn't work because when running individual specs it ended up like this:
And the whole set run.
It would be helpful if
Guard::Jasmine::Runner.query_string_for_suite
checked for whether the url already contains any query parameters and begins the encoded_url with either?
or&
accordingly.I resorted to the following hack, that I placed in the end of my Guardfile:
Is there a less hacky way to accomplish this? Or does it require a change to guard-jasmine? I'm not familiar with the spectrum of typical configurations and runner combinations to know whether this is the right place for such a change.
Thanks!
The text was updated successfully, but these errors were encountered: