Here's a list of tools that can be used to test or validate your javascript code.
1. J3Unit - an object-oriented unit testing framework for JavaScript. It runs javascript tests in the web browser.
URL: http://j3unit.sourceforge.net/
2. JsUnit - another javascript unit testing
framework in the browser. It includes a platform for automating
execution of tests on multiple browsers.
URL: http://www.jsunit.net/
3. YUI 2 - a testing framework for browser-based JavaScript solutions.
Features:
- DOM Event simulation in all A-grade browsers.
- Grouping of related test cases using test suites.
- Rapid creation of test cases through simple syntax.
- Advanced failure detection for methods that throw errors.
- Asynchronous tests for testing events and Ajax communication.
URL: http://developer.yahoo.com/yui/yuitest/
4. Crosscheck - an open source testing framework
for verifying javascript in your browser. It helps you ensure that your
js code will work fine under multiple browsers.
URL: http://thefrontside.net/crosscheck
5. JSLitmus - a lightweight tool for creating JavaScript benchmark tests. Features:
- one file for installation (JSLitmus.js)
- works on different browsers - Firefox, Opera, Safari, IE, Google Chrome, and iPhone browsers
- Google Chart + TinyUrl integration
- adaptive test cycles - tests take ~1-2 seconds, regardless of the operation
- Open Source
URL: http://broofa.com/Tools/JSLitmus/
6. Regular Expression Tool - easy to use online to that helps you to search for your regular expression matches in your text.
URL: http://erik.eae.net/playground/regexp/regexp.html
If you know another tools for testing and validating javascript
code, I'll be very thankful to post a link to it as a comment to
include its info in the post
|