Open-source-JavaScript UI middleware for unit testing

Source: Internet
Author: User

In Javascript development for Web Front-end, there is often a problem: how to test?

Specifically, a JS function is used to update the content of several page elements based on input parameters. How can I verify the running effect of this JS function? Relying on a large number of manual tests is obviously too inefficient and error-prone...

 

Therefore, the starting point of this middleware is:Solve the Problem of UI unit testing in Web Front-end development

 

How can this problem be solved? This middleware starts from two aspects:

  1. Use the MVC mode forcibly to solve Code Coupling Problems
  2. Introduce intermediate description object to update the UI
    1. In the browser environment, parse the intermediate description object to complete UI Rendering
    2. In the unit test environment, parse the intermediate description object to verify the matching result with the expected value.

For more details, please visit GitHub, Open Source Address: https://github.com/micyng/rutJS

-------

PS. I am looking for a new job (imperial capital) in the following directions:

* Windows Phone platform app development

* Continue the high-performance Python development on the Linux platform

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.