Front-end TDD development

Source: Internet
Author: User

Test and debugging, different types of unit testing, performance testing, integration testing, black box white box testing . To guide development through testing

is a good development idea, but in fact most companies do not adopt, because the cost is big, here I make a record.

JavaScript unit tests:

Summary : Mocha as the core :

browser-side :

Assertion Library: Should.js chai.js can

Console display test: Mocha-phanatomjs feeling a little necessary

The report is read directly on the Web page .

node End :

Assertion Library: Should.js

Console Generation report :

NPM I Istanbul-g

Istanbul cover _mocha

Steps :

Mocha Init Front-end scaffolding

Mocha can run a file individually or by using Skip, only torun a single use case separately

Front-end TDD development

Related Article

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.