Home >Web Front-end >JS Tutorial >Several practical JavaScript testing and validation tools_javascript skills

Several practical JavaScript testing and validation tools_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:29:221259browse

Although the syntax of JavaScript is very simple, it is still difficult to write programs because of its running environment: based on a web browser.

 JSLint

JSLint is a web-based tool for validating JavaScript error codes. It has features and specific settings to customize your verification algorithm to your needs.

 JsUnit

JsUnit is a JavaScript framework for unit testing on the client side (during browsing). For JavaScript, JUnit is like a port of it. Of course, it can also run automatically in multiple browsers and different operating systems on multiple machines. Its development began in January 2001.

 J3Unit

J3Unit is an object-oriented JavaScript unit testing framework. J3Unit runs JavaScript tests directly in the web browser, and can also automatically run JUnit and Jetty. J3Unit is built on JUint and Script.aculo.us to better automatically run JavaScript unit tests. Object-oriented JavaScript unit tests are written with the Test.Unit.Runner object from Script.aculo.us, based on the prototype JavaScript library.

 Crosscheck

Crosscheck is an open source JavaScript testing framework that verifies browsers. It can help you use different browsers, such as: Internet Explorer, Firefox, etc., without having to install them one by one. to confirm that your code is correct. The only thing you need is a Java virtual machine environment.

 YUI Test

YUI testing is a browser-based testing framework that provides solutions. Using YUI, you can easily add unit tests and find JavaScript solutions. It is a JavaScriptMVC test plug-in developed by Yahoo! UILibrary, which allows you to model most DOM actions, such as writing, dragging, and modeling AJAX responses, and can use assertions. It can be run like a function and can be integrated tested in different console windows. Although it is not developed based on any xUnit framework, YUI Test still has many features of nUnit and JUnit. (While not a direct port from any specific xUnit framework, YUI Test does derive some characteristics from nUnit and JUnit. This paragraph is not translated well, but I believe the general meaning is correct).

 Regular Expression Tool

Regular Expression Tool is an online tool used to test whether your regular expression code is correct. Very handy when you want to quickly test regular expressions on various text examples.

 JSLitmus

JSLitmus is a lightweight tool used to test JavaScript execution performance and uses an intuitive API.

 JavaScript Regular Expression Tester

This handy app uses JavaScript in the browser to test JavaScript regular expressions. The operation interface is the same as other regular expression testing tools. The difference is that it tests the performance of JavaScript regular expressions in JavaScript.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn