Author: Tales from the Evil Empire : ASP.NET | Posted on: 12/9/2008 1:13:12 AM | Views : 891

There are plenty of options to test JavaScript code . My goal here is not especially to add to this long list but I needed something for my samples that was brain dead simple to understand and that I could redistribute without any concerns about licensing (this is licensed under the very liberal MS-PL ). I just think it?s good practice to distribute tests with sample code because it promotes TDD and helps to understand the intent of the code. So I built the simplest test framework I could, both in terms of its code and ease of use. The result is very small and at 32 lines of code, it?s small enough that I can post it in its entirety here: // Really Simple Testing for JavaScript // (c) 2008 Bertrand Le Roy, licensed under MS-PL function test...(read more) ...

Go to the complete details ...