notes and docs...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-08-18 15:59:05 +03:00
parent c6d82a3e52
commit 8a4498d323
2 changed files with 41 additions and 1 deletions

View File

@ -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 : -->

View File

@ -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 */