Last active
November 20, 2015 12:57
-
-
Save caspian311/b94226b98c894cfe1c60 to your computer and use it in GitHub Desktop.
How to setup a front-end test environment with Karma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create project space | |
mkdir -p <path-to-project> | |
cd <path-to-project> | |
# initialize your environment | |
git init | |
npm init | |
bower init | |
# install app dependencies | |
bower install angular angular-routes --save | |
# install test dependencies | |
bower install angular-mocks --save-dev | |
npm install karma --save-dev | |
npm install -g karma-cli | |
# configure the test runner | |
karma init # this will prompt for a number of things | |
# run tests | |
karma karma.conf.js start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment