Javascript Development Tools
From ImageWeb
Revision as of 10:23, 15 May 2007 by GrahamKlyne (Talk | contribs)
Contents |
Javascript development notes
This page started as an attempt to locate batch unit testing tools for javascript running against custom server code written in Python. Other interesting tidbits have inevitably been collected along the way.
Javascript unit testing
- http://www.opensourcetesting.org/unit_javascript.php - links page
- http://www.thefrontside.net/crosscheck - browser environment emulator.
- http://www.jsunit.net/ - modelled on JUnit. Seems to be widely used, but according to this blog (and other hints) doesn't handle async operations very well: http://kasparov.skife.org/blog/src/javascript/unit-testing-async-js.html.
- http://jsmock.sourceforge.net/ - mock objects - not sure what to make of this - runs with jsunit test runner.
- http://j3unit.sourceforge.net/ - "J3Unit runs JavaScript tests directly in the web browser and can be automated using JUnit and Jetty."
- From: http://mir.aculo.us/2006/9/16/adventures-in-javascript-testing
- prototype.js
- scriptaculous.js
- unittest.js
- rake tests:javascript - controls browsers to run tests javascript_tests plugin (?)
- http://www.openqa.org/selenium/ - apparently favoured by BEA and others. Lots of browser support. Oh! This is interesting: "Selenium Remote Control is a test tool that allows you to write automated web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser." Maybe that's exactly what we need - maybe we can integrate into the Python unit tests?
- http://www.openqa.org/selenium-core/usage.html - usage overview.
- http://release.openqa.org/selenium-core/nightly/reference.html - Selenium Core test scripts are embedded in HTML tables. "To use Selenium Core, you need to make it available from the same web server as the application you want to test. (This is a JavaScript security requirement. If you can't/won't modify the webserver you want to test, Selenium Core may not be the right tool for you; you may just want to use Selenium IDE or Selenium RC instead.)" - I think this means simply serving the javascript code, which would be easy for us.
- http://www.openqa.org/selenium-ide/ - Selenium IDE is a firefox plugin for interactive development and running of tests.
- http://wiki.openqa.org/pages/viewpage.action?pageId=763 - has some more useful background summary.
- http://sourceforge.net/projects/pyjtf/ - python/javascript testing framnework, but appears moribund. Appears to be IE-specific.
Javascript debugging
- http://www.getfirebug.com/ - Firebug
- http://www.mozilla.org/projects/venkman/ - Venkman JavaScript Debugger. "Venkman is the code name for Mozilla's JavaScript Debugger."
- MS script debugger for IE
Other
- http://webkit.org/
- http://www.jslint.com/lint.html - Javascript code checker
- http://javascript.crockford.com/ - useful information here
- http://www.quirksmode.org/

