0.0.3 • Published 5 years ago
pair14js v0.0.3
Team Pair a' Dice
Web Component Repository
Team Members
- Stephanie Mitchener - Lead
- Haozhi(Flik) Hu - Co-lead
- Mingxun(Tyler) Song - Quality Assurance
- Dung(Devon) Do - DevOps
- Haimei Yang - DevOps
- Eldon K. Y. Tay - Tool & Utility
- Kent Thai - Coder
- Alex Kurland - Coder
- Axel Drozdzynski - Coder
Getting Started
- Install Node.js
- Download from the master branch
- Open the directory and install dependencies
npm install
The Demo
- Navigate to the
demo/
folder - Run any of the demo HTML files in your favorite browser
The Web Components
- We have
core-hello
,pair-switch
,pair-slider
,pair-button
,core-color-picker
, and more to come - All of the web component are located in
lib/elements/
- Access the individual JavaScript classes within the web component folders
Unit Testing
- All Unit Tests are created with Jasmine, a JavaScript testing framework
- They are all located in
test/unit-test/
- Access the individual Javascript unit tests within the web component folders
- Run all unit tests:
./node_modules/karma/bin/karma start --single-run
- To update the existing test
- read the Jasmine Documentation
- To add a new test file
- include a new folder in
test/unit-test/
- add a testing file within the new folder
- include a new folder in
Browser Testing
- All browser tests are created with TestCafe, an end-to-end testing framework
- They are all located in
test/browser-test
- Access the individual Javascript unit tests within the web component folders
- Run individual browser test:
./node_modules/.bin/testcafe chrome,firefox ./test/browser-test/
+ web-component-folder/browser-test-file- To run locally, you will need to download the executable from the browsers you want to test on.
- To update the existing test
- read the TestCafe Documentation
- To add a new test file,
- include a new folder in
test/browser-test/
- add a testing file within the new folder
- include a new folder in
Travis CI
- To run Travis CI, push your changes to GitHub on any of the branches
- Open our Travis CI Build
- If you added a new browser test
- navigate to
.travis.yml
file - under scripts, include the command for running individual browser tests
- navigate to
Code Climate
- To run Code Climate, push your changes to GitHub on any of the branches
- If your build passes all of the tests on Travis CI, a snapshot of your code will be analyzed by Code Climate
- Open our Code Climate Build
JSDoc
- To be completed