Removed the failFast and oneFailurePerSpec config properties

This commit is contained in:
Steve Gravrock
2021-07-31 09:23:52 -07:00
parent 2480a0a93a
commit d8862aa583
9 changed files with 35 additions and 286 deletions

View File

@@ -886,7 +886,7 @@ describe('spec running', function() {
});
});
function behavesLikeStopOnSpecFailureIsOn(configureFn) {
describe('when stopOnSpecFailure is on', function() {
it('does not run further specs when one fails', function(done) {
var actions = [],
config;
@@ -905,25 +905,12 @@ describe('spec running', function() {
});
env.configure({ random: false });
configureFn(env);
env.configure({ stopOnSpecFailure: true });
env.execute(null, function() {
expect(actions).toEqual(['fails']);
done();
});
});
}
describe('when failFast is on', function() {
behavesLikeStopOnSpecFailureIsOn(function(env) {
spyOn(env, 'deprecated');
env.configure({ failFast: true });
});
});
describe('when stopOnSpecFailure is on', function() {
behavesLikeStopOnSpecFailureIsOn(function(env) {
env.configure({ stopOnSpecFailure: true });
});
});
});