JavaScript unit Testing FarmDescription: Javascript is present on almost every web page on the internet
today, but many of these scripts do not work properly (or at all) on
certain browser and operating systems combinations. This project
provides a web front-end to allow you to test your javascript scripts
on different browsers and operating systems. The aim is to highlight
the browser combinations that do not work.
Manual testing is a long process and more often than not prone to
errors. Most major software houses run their code through automatic
tests that perform the same kind of task. Why shouldn't you test your
javascript in the same way?
How does it work?
You write your javascript and insert some code to indicate a failure (or a pass) using the same functions as in JsUnit
(http://www.edwardh.com/jsunit/)and other unit testing frameworks. Then, every time a visitor views
your test case, it performs the unit test on their browser... providing
information if the test fails.
The more browser combinations that visit a particular test case -
the more chance you (and the rest of the community) will have of
finding what browsers do not work with your code.
Getting Started
Identify a section of your code that you want to test and clearly
identify a success and a failure state. Your javascript script will run
from top-to-bottom and you will insert some code to inform the back-end
when the test has passed and when it has failed.
You need to provide a name for the test and description of what the
test is designed to achieve - and that is about all! You can also add
comments and respond to other comments to help debug or improve your
script. It's easy to get started right away and add a test case of your
own.
|
1 week |
2 week |
1 month |
5 months |
1 year |
2 year |
Overall |
Votes |
0 |
0 |
0 |
0 |
0 |
0 |
2 |
Rating |
0 |
0 |
0 |
0 |
0 |
0 |
3.0 |
Added: Thu Apr 06 2006 |
Last Modify: Thu Apr 06 2006 |
Added by: |
Send Feedback to: |
Visited: 0 |
|
|
|