polymer - All tests fail in Web Component Tester for Firefox -


after creating clean copy of polymer starter kit, running tests using web component tester ("test" gulp task) results in tests failing in firefox.

the tests run through fine in both chrome , ie.

the error is:

firefox 39               ✖ my-greeting-basic.html   timed out loading http://localhost:2000/components/polymer-starter/my-greeting-basic.html?     <unknown> @                          done @ /components/mocha/mocha.js:1846:0     <unknown> @        runner.prototype.run/< @ /components/mocha/mocha.js:5213:0     <unknown> @   eventemitter.prototype.emit @ /components/mocha/mocha.js:616:0     <unknown> @                       start/< @ /components/mocha/mocha.js:5203:0     <unknown> @     runner.prototype.runsuite @ /components/mocha/mocha.js:5103:0     <unknown> @                         start @ /components/mocha/mocha.js:5201:0     <unknown> @          runner.prototype.run @ /components/mocha/mocha.js:5226:0     <unknown> @           mocha.prototype.run @ /components/mocha/mocha.js:1849:0     <unknown> @                             g @ /bower_components/webcomponentsjs/webcomponents.min.js:11:0     <unknown> @                             w @ /bower_components/webcomponentsjs/webcomponents.min.js:11:0     <unknown> @                             f @ /bower_components/webcomponentsjs/webcomponents.min.js:11:0     <unknown> @                             p @ /bower_components/webcomponentsjs/webcomponents.min.js:11:0 404 /components/polymer-starter/my-list-basic.html firefox 39               ✖ my-list-basic.html   timed out loading http://localhost:2000/components/polymer-starter/my-list-basic.html? firefox 39               tests failed: 2 failed tests test run ended in failure: 2 failed tests process terminated code 1.  

in browser calls test suites result in 404s.

the issue firefox in windows screws when sees backslashes in path. took me forever figure out, i've opened ticket on relevant project , submitted pull request fix came with.

if you're impatient can navigate <your project>/node_modules/web_component_tester/runner/webserver.js , put following before line 80(options.webserver.webrunnercontent = index_template(options))

options.suites = options.suites.map(function (cv) {   return cv.replace(/\\/g,'/'); }) 

this change backslashes in path forward slashes firefox doesn't have problem with.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -