karma-runner / karma-ie-launcher

A Karma plugin. Launcher for Internet Explorer.
MIT License
59 stars 23 forks source link

IE is launched without local storage support #101

Open CB-Giepa opened 6 years ago

CB-Giepa commented 6 years ago

I am trying to setup a Teamcity config in order to run my unit tests. My components to do so are the following:

Build Steps: 1) npm install 2) gulp 3) npm test

Build fails with following error: [npm test] > karma start karma_qunit.conf.js --single-run && karma start karma_jasmine.conf.js --single-run [11:05:44][npm test] [11:05:49][npm test] 20 11 2017 11:05:49.535:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/ [11:05:49][npm test] 20 11 2017 11:05:49.544:INFO [launcher]: Launching browsers IE_no_addons with unlimited concurrency [11:05:49][npm test] 20 11 2017 11:05:49.667:INFO [launcher]: Starting browser IE [11:05:53][npm test] 20 11 2017 11:05:53.331:INFO [IE 11.0.0 (Windows 10 0.0.0)]: Connected on socket h9rXHfyF9TcJDVdfAAAA with id 13447655 [11:05:54][npm test] IE 11.0.0 (Windows 10 0.0.0) ERROR [11:05:54][npm test] This function is not supported by your system. [11:05:54][npm test]
[11:05:54][npm test] at mytest.js:413 [11:05:54][npm test] [11:05:54][npm test] [11:05:56][npm test] 20 11 2017 11:05:56.084:WARN [launcher]: IE was not killed in 2000 ms, sending SIGKILL.

Code of my test at the line mentioned in the error:

QUnit.begin(function ()
{
    window.localStorage.clear(); // <--- Line 413
    init();
});

Additional Informations:

How can I solve this issue? Any help is appreciated.

Thanks and best regards.

reduckted commented 6 years ago

Sounds like a duplicate of #10.