-
Notifications
You must be signed in to change notification settings - Fork 161
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 option "Stop execution on spec failure" does not work properly in combination with karma #218
Comments
I guess this will be fixed by #224 |
Is there any update on this? Edit1: Adding Edit2: It seems like |
Please run karma with |
I had already done that ... kind of ... using // ...
{
"random":true,
"oneFailurePerSpec":true,
"failFast":true,
"timeoutInterval":3600000
}
// ... I am fairly certain that the config is correct because if I change function createStartFn (karma, jasmineEnv) {
return function () {
var clientConfig = karma.config || {}
var jasmineConfig = clientConfig.jasmine || {}
jasmineEnv = jasmineEnv || window.jasmine.getEnv()
jasmineEnv.configure(jasmineConfig)
window.jasmine.DEFAULT_TIMEOUT_INTERVAL = jasmineConfig.timeoutInterval ||
window.jasmine.DEFAULT_TIMEOUT_INTERVAL
jasmineEnv.addReporter(new KarmaReporter(karma, jasmineEnv))
jasmineEnv.execute()
}
} to: function createStartFn (karma, jasmineEnv) {
var clientConfig = karma.config || {}
var jasmineConfig = clientConfig.jasmine || {}
jasmineEnv = jasmineEnv || window.jasmine.getEnv()
jasmineEnv.configure(jasmineConfig)
window.jasmine.DEFAULT_TIMEOUT_INTERVAL = jasmineConfig.timeoutInterval ||
window.jasmine.DEFAULT_TIMEOUT_INTERVAL
return function () {
jasmineEnv.addReporter(new KarmaReporter(karma, jasmineEnv))
jasmineEnv.execute()
}
} The behavior is according to |
Ok thanks. Seems like an unfortunate design here: critical parts of the execution sequence move between two files. I don't see anything in Here is what I would do:
We can start with just 3 and 4. |
Okay. I'm gonna file a PR about 3 & 4 as soon as I get to it. |
I believe this issue is fixed in karma-jasmine 2.x. Please reopen if you still see it. |
Please reopen as it has not been fixed. |
Calling pending only works for beforeEach jasmine/jasmine#1579 And the stopSpecOnExpectationFailure setting only works for node cli. Have to use oneFailurePerSpec for karma-jasmine: karma-runner/karma-jasmine#218
Update to karma-jasmine 2 so that the oneFailurePerSpec flag can be enabled so tests can be marked pending if httpbin is offline: karma-runner/karma-jasmine#218
Calling pending only works for beforeEach jasmine/jasmine#1579 And the stopSpecOnExpectationFailure setting only works for node cli. Have to use oneFailurePerSpec for karma-jasmine: karma-runner/karma-jasmine#218
Update to karma-jasmine 2 so that the oneFailurePerSpec flag can be enabled so tests can be marked pending if httpbin is offline: karma-runner/karma-jasmine#218
Calling pending only works for beforeEach jasmine/jasmine#1579 And the stopSpecOnExpectationFailure setting only works for node cli. Have to use oneFailurePerSpec for karma-jasmine: karma-runner/karma-jasmine#218
Update to karma-jasmine 2 so that the oneFailurePerSpec flag can be enabled so tests can be marked pending if httpbin is offline: karma-runner/karma-jasmine#218
These changes were seemingly reverted as part of #243 but I don't see why? |
Sadly the hacky fix made in PR #231 does not work at all anymore with karma-jasmine 2.0.1 |
Environment
v3.1.0
v1.1.2
Please see jasmine/jasmine#1576
The text was updated successfully, but these errors were encountered: