wct

Polymer Web Component Tester Unable to connect to selenium

删除回忆录丶 提交于 2019-12-22 14:42:16
问题 I am running Polymer Web Component Tester on a simple Polymer 2.x application template and get the following output: hook: prepare hook: prepare:selenium Starting Selenium server for local browsers 15:00:30.747 INFO - Selenium build info: version: '3.7.1', revision: '8a0099a' 15:00:30.747 INFO - Launching a standalone Selenium Server 2018-02-26 15:00:30.763:INFO::main: Logging initialized @246ms to org.seleniumhq.jetty9.util.log.StdErrLog 15:00:30.825 INFO - Driver class not found: com.opera

during wct test: Failed to load resource: the server responded with a status of 404 (Not Found)

余生颓废 提交于 2019-12-11 06:36:41
问题 I am struggling to find someway approach to test my vanilla webcomponents. I found someone trying the same and I try to reproduce exactly his steps and the answer accepted (Web Component / HtmlElement : unit testing). I can't imagine a reason for not finding the test. It seems it looks in wrong place. If so, maybe the answer to my question will be how to edit the path to in wct.conf.js to find the real test (I am not sure it is the root cause but it is my best in front of the error provided).

Code coverage of Polymer Application with WCT

只谈情不闲聊 提交于 2019-12-10 15:33:15
问题 I have the sapplication developed in Polymer and unit testing with WCT. I want to generate the code coverage report for that. I tried with the istanbul (web-component-tester-istanbul) , but it is not supporting it, I am using Polymer Version 1.2 . And I tried with Karma + Grunt, but I am not able to genrate the code coverage report. Can anybody tell me how we can generate code coverage with Karma? I search on google but not able to find WCT with Karma. 回答1: You can use the modified version

Polymer Tests fail waiting for the driver server to start

天大地大妈咪最大 提交于 2019-12-10 10:52:23
问题 I am following polymer's (2.0) official tutorial to run and test a sample application. When running the tests using polymer test or polymer test -l chrome , the following error shows up: Tests failed: {"value":{"stacktrace":"org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.\nBuild info: version: \u00273.7.1\u0027, revision: \u00278a0099a\u0027, time: \u00272017-11-06T21:07:36.161Z\u0027\nSystem info: host: \u0027silverdust\u0027, ip: \u0027127.0.1.1\u0027,

How to measure common coverage for Polymer components + .js files?

落花浮王杯 提交于 2019-12-09 06:54:52
问题 How to measure common coverage for Polymer components with all .js files in solution (for non-component tests QUnit is used)? I tried karma-coverage, but it works only for .js files. 回答1: For Polymer, you would normally use web-component-tester (WCT) to test your components, and the web-component-tester-istanbul plugin for code coverage. You'd configure wct.conf.json in the root of your project with something like this: { "suites": [ "test/components/my-view1/my-view1.html" ], "plugins": {

How to display the XUnit test output on Jenkins

我只是一个虾纸丫 提交于 2019-12-08 11:26:06
问题 According to JUnit formatted test output I created an XUnit report xml with https://github.com/garcus/wct-xunit-reporter. What does not work is that Jenkins displays the Test-Results. I tried: different XUnit Test Results (Publish xUnit test result report: [xUnit] [ERROR] - The converted file for the result file '..../testfile.xml' (during conversion process for the metric 'NUnit') is not valid.) the JUnit Test Results Is there another XUnit xsl needed, or what else do I miss? 回答1: I found

Polymer Web Component Tester Unable to connect to selenium

左心房为你撑大大i 提交于 2019-12-06 04:45:26
I am running Polymer Web Component Tester on a simple Polymer 2.x application template and get the following output: hook: prepare hook: prepare:selenium Starting Selenium server for local browsers 15:00:30.747 INFO - Selenium build info: version: '3.7.1', revision: '8a0099a' 15:00:30.747 INFO - Launching a standalone Selenium Server 2018-02-26 15:00:30.763:INFO::main: Logging initialized @246ms to org.seleniumhq.jetty9.util.log.StdErrLog 15:00:30.825 INFO - Driver class not found: com.opera.core.systems.OperaDriver 15:00:30.856 INFO - Driver provider class org.openqa.selenium.safari

How to measure common coverage for Polymer components + .js files?

三世轮回 提交于 2019-12-03 08:49:43
How to measure common coverage for Polymer components with all .js files in solution (for non-component tests QUnit is used)? I tried karma-coverage , but it works only for .js files. For Polymer, you would normally use web-component-tester (WCT) to test your components, and the web-component-tester-istanbul plugin for code coverage. You'd configure wct.conf.json in the root of your project with something like this: { "suites": [ "test/components/my-view1/my-view1.html" ], "plugins": { "istanbul": { "dir": "./build/coverage", "reporters": [ "text-summary", "lcov" ], "include": [ "*.js", "*