Cells (cellsjs)
Cells is a tool to help developers with common task
How to use
To install the application, you only need to execute the next command, and the cells command will be available for you.
npm -g install cellsjs
Once installed, if you execute it without parameters, you'll get in the console this help with the available options.
Name: cells - utility to help developers with common tasks
Synopsis: cells [options]
Options descriptions:
--help, -h Show this help
--verbose, -V Verbosely executes specified tasks
--version, -v Print cells script version
component:lint Executes the lint task into the specified folder
component:coverage Executes the coverage task into the specified folder
component:deploy Deploy the specified folder
component:test-demo Test the component's demo
Test coverage
The test coverage right now is fixed to this values:
- 50% statements
- 50% branches
- 50% functions
- 50% lines; you should take into consideration that one line can contain several statements, for instance:
var a = a == 1 ? true : false; // Contains several statements in one line
Prerequisites and troubleshooting
Selenium requires a jdk (java development kit) so in order to get it working you'll need it installed, for instance from here
You should also take into consideration web-component-tester, you can get in trouble if you are using sudo to install packages, so we recomend you to read the guide of how to use npm without sudo and the official npm avoid sudo guide