-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Jasmine have ability to add custom equality testers. However when these testers added in global scope (e.g not during actual test run) using following syntax:
jasmine.getEnv().addEqualityTester(MyEqualityTester);
they will be cleaned by jasmine adapter. Reason is that adapter recreate environment before all test are executed in the JSTD register function:
jstestdriver.pluginRegistrar.register({
name: 'jasmine',
runTestConfiguration: function(config, onTestDone, onComplete){
if (config.getTestCaseInfo().getType() != JASMINE_TYPE) return false;
(jasmine.currentEnv_ = new Env(onTestDone, onComplete)).execute();
return true;
},
onTestsFinish: function(){
jasmine.currentEnv_ = null;
collectMode = true;
}
});
line:
(jasmine.currentEnv_ = new Env(onTestDone, onComplete)).execute();
In order to fix this adapter should extend already instantiated environment instead of creating new.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels