This is a basic Hello-Wolrd application.
- A browser.
- Internet access.
- Node installed.
- Git installed.
Clone this repository.
git clone https://github.com/federicozacayan/webpack-karma-starter.git .
Execute the following command in the root folder.
npm update
npm coverage
To stop the server press CTRL+C
.
You can find a tutorial of this project in the following site.
https://federicozacayan.github.io/webpack-karma-starter/
Any file ending .spec.js
in the src
folder will be consider a test. Check karma.conf.js in the root folder.
files: [
'src/**/*.spec.js'
],
After running, open coverage/lcov-report/index.html to view the coverage in the browser.