There are many unit test frameworks in the Javascript world. Here I only recommend a few ones that I am familiar with and think are doing well. If you find a well-used or new test framework, please let me know :)
- Jsunit
The systematic solution is based on xnuit specifications. If you use JUnit, nunit, and other frameworks, this should be easy to use and include the server side (Java ). Http://www.jsunit.net/
Rating: comprehensive and professional, suitable for large-scale enterprise-level development.
- Test. Simple & test. More
This is the http://openjsan.org/doc/t/th/theory/Test/Simple/0.21/lib/Test/Simple.html of the testing framework recommended by John resig, the father of jquery, in his book "Pro JavaScript.
Rating: it is very easy to use and concise. It is suitable for small and medium-sized projects to quickly introduce unit tests.
- Fireunit
John resig made another task. In his blog, John resig-fireunit: javascript unit testing extension, he published fireunit, a firebug-based extension developed in partnership with Jan odvarko.In short, fireunit adds a tag panel to firebug and provides some simple JavaScript APIs to record and view tests. For more information, see http://shawphy.com/2008/12/fireunit.html.
Comment: there are traces of test. Simple. John resig is a very good guy at learning and innovating. Fireunit has outstanding performance in ease of use and is very suitable for front-end engineers who use firebug-based debugging environments.