Frontend testing framework Learning

Source: Internet
Author: User

After more than a year of front-end work, I have never carefully written a unit test. I have made a serious study and summary of the various frameworks that I often say cannot be completely divided.

Unit Test Framework: mocha, Jasmine, etc. Because the test framework does not contain the assertions library, you need to introduce the assertions library. Jasmine has assertions (not used ).
Assert, shouldjs, and Chai are used in specific unit test cases.
Karma is an automated testing tool that uses configuration files to automatically detect and test unit test files and output test results.
The continuous integration service of Travis Ci is used to detect, compile, and publish code in the code library. Jenkins is used for similar purposes.

Experience: Low-handed eyes are a common problem for everyone. In fact, I have learned these frameworks before and thought I would use them. In fact, what I actually use is often a face-to-face situation. I need to practice more, read more and perform multiple operations.

Frontend testing framework Learning

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.