mirror of
https://github.com/flynx/test.js.git
synced 2025-10-28 18:30:08 +00:00
notes and docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c6d82a3e52
commit
8a4498d323
40
README.md
40
README.md
@ -1,6 +1,13 @@
|
|||||||
# test.js
|
# test.js
|
||||||
experimental test runner....
|
experimental test runner....
|
||||||
|
|
||||||
|
- [test.js](#testjs)
|
||||||
|
- [Architecture](#architecture)
|
||||||
|
- [Combinational testing](#combinational-testing)
|
||||||
|
- [Unit testing](#unit-testing)
|
||||||
|
- [Basic usage](#basic-usage)
|
||||||
|
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
||||||
This package implements two testing schemes:
|
This package implements two testing schemes:
|
||||||
@ -40,4 +47,35 @@ This makes it simple to define procedural/generative tests.
|
|||||||
|
|
||||||
### Unit testing
|
### Unit testing
|
||||||
|
|
||||||
This is the traditional self-contained test approach.
|
This is the traditional self-contained test approach.
|
||||||
|
|
||||||
|
|
||||||
|
## Basic usage
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
var test = require('ig-test')
|
||||||
|
|
||||||
|
test.Setups({
|
||||||
|
basic: function(assert){
|
||||||
|
return {
|
||||||
|
a: 123,
|
||||||
|
b: 321,
|
||||||
|
} },
|
||||||
|
})
|
||||||
|
|
||||||
|
test.Tests({
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
// make the test runnable as a standalone script...
|
||||||
|
__filename == (require.main || {}).filename
|
||||||
|
&& tests.run()
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell_session
|
||||||
|
$ runtests
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
<!-- vim:set ts=4 sw=4 spell : -->
|
||||||
2
test.js
2
test.js
@ -9,6 +9,8 @@
|
|||||||
*
|
*
|
||||||
* TODO:
|
* TODO:
|
||||||
* - flexible test chains with 0 or more modifiers...
|
* - flexible test chains with 0 or more modifiers...
|
||||||
|
* - might be a good idea to detect test module type and run only our
|
||||||
|
* ones...
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
***********************************************/ /* c8 ignore next 2 */
|
***********************************************/ /* c8 ignore next 2 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user