Quickly build ANGULARJS test environments and problems you may encounter

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.