repo for angularjs testing training
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Ganesh ce11dfc1ef bookappmocha 5 years ago
..
bin pushing again 5 years ago
src pushing again 5 years ago
.gitignore pushing again 5 years ago
README.md pushing again 5 years ago
karma.conf.js pushing again 5 years ago
package-lock.json pushing again 5 years ago
package.json pushing again 5 years ago
packagejson.old pushing again 5 years ago

README.md

A simple and concise demonstration on how to use Mocha, Chai, and Karma to unit and integration test the frontend.

Prereqs

You must have Node.js installed.

Get it running

In the root directory, execute:

npm install

To start/run the tests, execute the following in the root directory:

node_modules/karma/bin/karma start

Watch

By default, Karma is configured to watch for changes, so any changes you make to the sample.js or the sampleTest.js will automatically be picked up and tests will be rerun.