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:
- Use the MVC mode forcibly to solve Code Coupling Problems
- Introduce intermediate description object to update the UI
- In the browser environment, parse the intermediate description object to complete UI Rendering
- 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