Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I run unit test in polymer/test/unit/***.html #5655

Open
hexiaoting opened this issue May 8, 2020 · 4 comments
Open

How can I run unit test in polymer/test/unit/***.html #5655

hexiaoting opened this issue May 8, 2020 · 4 comments
Labels

Comments

@hexiaoting
Copy link

hexiaoting commented May 8, 2020

I'm new to polymer, I donot know how to run unit test in this repo.
When I open these ***.html files with chrome directly, nothing showed.
Any advice?
Is there any document?

@arthurevans
Copy link

Hi @hexiaoting. There are instructions for running the unit tests here:

https://github.com/Polymer/polymer/blob/master/CONTRIBUTING.md#unit-tests

I'm not sure when those instructions were last updated--please let us know if they don't work for you.

If you're creating a new project from scratch, I'd recommend starting with LitElement instead.

@hexiaoting
Copy link
Author

@arthurevans thank you.
I follow the above link to run test:

(jupyter-dev) [root@hwtnode polymer]# yarn install

(jupyter-dev) [root@hwtnode polymer]# polymer serve --npm -H 0.0.0.0 -p 15130
info:	Files in this directory are available under the following URLs
      applications: http://0.0.0.0:15130
      reusable components: http://0.0.0.0:15130/components/@polymer/polymer/

But still cannot access it sucessfully. The error message is

GET http://10.60.1.80:15130/@webcomponents/webcomponentsjs/webcomponents-lite.js net::ERR_ABORTED 404 (Not Found)
GET http://10.60.1.80:15130/@polymer/iron-component-page/iron-component-page.js net::ERR_ABORTED 404 (Not Found)

The file "webcomponents-lite.js" doesnot exist on node_modules.
The file "iron-component-page.js" exists with the path:
node_modules/@polymer/iron-component-page/iron-component-page.js

Can you help me ?

@hexiaoting
Copy link
Author

hexiaoting commented May 8, 2020

image

image

@stale
Copy link

stale bot commented Jun 2, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants