Video tutorial refer to the first chapter of the Desert course of http://www.imooc.com/learn/156
First install nodejs,nodejs.org official online direct download, has been next,finish
Open the command line tool cmd under the installation path of NPM
NPM My installation path C:\USERS\TCHLU\APPDATA\ROAMING\NPM
NPM Install-g Grunt
NPM install-g Http-server
NPM Install-g Bower
Then install the test-related tools in turn
Karma Jasmine Protractor
Here's the problem.
Bower download package to install git, git needs a global environment
Fatal:unable to connect to github.com:
Reason:
Need to use HTTPS to read data
Workaround: Enter a command
git config--global url. " https://". Insteadof git://
Then we have to open a foreign agent
Bower Install jquery was successful
Jasmine grouping use case expectation matching
Enter the command to install karma:
NPM Install Karma--save-dev
Detect installation Successful Karma start
Installing the Karma-jasmine/karma-chrome-launcher Plugin
NPM Install Karma-jasmine karma-chrome-launcher--save-dev
Installing KARMA-CLI
NPM install-g KARMA-CLI
Open the command-line tool below the PHONECAT project
NPM start
NPM Test
NPM Run Protractor
Test the integration test for this project
Installation often see a variety of errors, some errors can be temporarily ignored, as long as the final test results do not affect the line
Summarize:
Preliminary understanding of the concept of front-end development testing and TDD, many details not in-depth study
Quickly build ANGULARJS test environments and problems you may encounter