-
Notifications
You must be signed in to change notification settings - Fork 27
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
Jasmine specFilter is always overwritten #23
Comments
This package just re-packages part of Jasmine, so that specific line is coming from here: Do you know how karma sends the spec filter? Perhaps that needs to be plumbed through properly in this package. |
Karma sets the spec filter here https://github.com/karma-runner/karma-jasmine/blob/v2.0.1/src/adapter.js#L345. The problem is that |
Got it, so you're saying we should not set the spec filter if one already exists and if it's not set in the query string. Seems reasonable. Feel free to contribute a fix or I'll try to get to it when I have some spare cycles. |
Something like...
|
If
kjhtml
reporter is specified in karma.conf.js, any other karma adapter (e.g. karma-jasmine) cannot setspecFilter
.The problem is that
specFilter
is overwritten even if 'spec' query parameter is unspecified (https://github.com/dfederm/karma-jasmine-html-reporter/blob/v1.4.0/src/lib/adapter.js#L70).It makes it impossible to run
karma run -- "--grep=my spec name"
.Please set
specFilter
only ifspec
query parameter is specified.The text was updated successfully, but these errors were encountered: