Home
Name Modified Size Downloads / Week Status
Totals: 4 Items   36.9 kB 3
example 2013-08-11 33 weekly downloads
README.md 2013-08-11 749 Bytes 11 weekly downloads
testit.js 2013-08-11 34.9 kB 11 weekly downloads
LICENSE 2013-08-11 1.2 kB 11 weekly downloads

testit

Simple js testing framework

Goals:

  • to use dev console instead of page DOM
  • to avoid crashes
  • to avoid differences in results of tests of one and the same code
  • to provide the ease of use
  • multilevel nesting
  • chaining

Techniques:

  • OOP
  • dev console API

Test types

  • equality between 2 or more values
  • non-false result of expression or value
  • type of value

===

How to install

You just need to add html <script src='path/to/testit.js'></script> to the end of <body> tag. That's it!

===

How to use

You can find the API manual on wiki

Example

Look at it right here

Source: README.md, updated 2013-08-11