jueves, 22 de enero de 2015

No more slow test running with PhantomJS in Windows

Hi guys,

I've found a solution to our problem with test running on Windows. Thanks to dtabuenc to share his wisdom in this thread started by NateRedding.

The problem was that when Karma is running tests, PhantomJS like any browser "create a new page" to each test in browser and throw a DNS petition.
"Knock! Knock! Knock! 127.0.0.1", "Knock! Knock! Knock! 127.0.0.1" and nobody is answering.

The solution is just add 127.0.0.1 localhost (or uncomments the line with it) in windows/system32/etc/hosts don't forget to edit this file with administrator permissions.

Have a happy day.

Publicar un comentario