Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Add support for unit testing #1

Closed
thescientist13 opened this issue May 12, 2018 · 9 comments
Closed

Add support for unit testing #1

thescientist13 opened this issue May 12, 2018 · 9 comments
Assignees
Labels
documentation Documentation for the wiki enhancement New feature or request help wanted Extra attention is needed question Further information is requested todo-app Should be applied to the Todo App website Should be applied to the website repo
Milestone

Comments

@thescientist13
Copy link
Member

thescientist13 commented May 12, 2018

  • Polymer CLI uses web-component-tester (which uses mocha) - not sure if this is compatible with "vanilla" web compoennts (not using Polymer / Polymer CLI)
@thescientist13 thescientist13 added the enhancement New feature or request label May 12, 2018
@thescientist13 thescientist13 self-assigned this May 12, 2018
@thescientist13 thescientist13 added this to the Initial Release milestone May 12, 2018
@thescientist13 thescientist13 added documentation Documentation for the wiki website Should be applied to the website repo labels May 21, 2018
@thescientist13 thescientist13 added the todo-app Should be applied to the Todo App label May 22, 2018
@thescientist13
Copy link
Member Author

thescientist13 commented Jun 3, 2018

Testing out web-component-tester but

  • requires Java (run selenium)
  • runs "head" browser (not headless)
  • seems cumbersome for unit testing, but might be good for Add support for E2E Testing #36 since it has integration with Sauce Labs?

For local / CI unit testing, something along the developer experience of Jest / Headless Chrome would be 👌

@thescientist13 thescientist13 added help wanted Extra attention is needed question Further information is requested labels Jun 3, 2018
@thescientist13
Copy link
Member Author

@thescientist13
Copy link
Member Author

I have a simple example working here.

There is no support for a "TDD" mode yet, but that is being tracked here thought, so maybe makes sense to track as another issue.

@thescientist13
Copy link
Member Author

Followed up in WCT repo with latest progress of work.

@thescientist13
Copy link
Member Author

@thescientist13
Copy link
Member Author

got some feedback to try out!
Polymer/tools#567 (comment)

should also check out this repo for configuration ideas
https://github.com/Westbrook/generator-easy-wc/blob/master/generators/app/templates/wct.conf.json

@thescientist13
Copy link
Member Author

Got an implementation of unit testing working here
ProjectEvergreen/component-simple-slider@7e63e6e

Just need to documentation around it

@thescientist13
Copy link
Member Author

made an issue for watch mode
#42

@thescientist13
Copy link
Member Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Documentation for the wiki enhancement New feature or request help wanted Extra attention is needed question Further information is requested todo-app Should be applied to the Todo App website Should be applied to the website repo
Projects
None yet
Development

No branches or pull requests

1 participant