Name | Modified | Size | Downloads / Week |
---|---|---|---|
example | 2013-08-11 | ||
README.md | 2013-08-11 | 749 Bytes | |
testit.js | 2013-08-11 | 34.9 kB | |
LICENSE | 2013-08-11 | 1.2 kB | |
Totals: 4 Items | 36.9 kB | 0 |
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
<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