test.it

1.2.3 • Public • Published

test.it

TDD testing framework.

Goals:

  • to use dev console instead of page DOM (in browser)
  • to avoid crashes
  • to avoid differences in results of tests of one and the same code
  • to provide the ease of use
  • to provide async testing
  • to provide particular output
  • multilevel nesting
  • chaining

Techniques:

  • OOP
  • Strategy pattern

Test types

  • validity of expression or value
  • equality between 2 or more values
  • constructor (type) of value

===

Preparation

  • First: install framework and output module

npm install 'test.it' npm install 'test.it-nodejs' ```

**Hint:** *you can use [`-g`](https://npmjs.org/doc/install.html) flag to install them globally*
  • Second: add core of framework and output module, set it as default printer

test = require('test.it'); nodeConsole = require('test.it-nodejs'); test.printer(nodeConsole); btw you can use this construction:javascript (test = require('test.it')).printer(require('test.it-nodejs')); ```

**Info:** *Output module is not required! You can use test.it without any output at all.*

It's repo takes place [here](https://github.com/titulus/test.it-nodejs)

===

How to use

You can find the API manual on wiki

Online demo

Look at it right here Русская версия сдесь

Package Sidebar

Install

npm i test.it

Weekly Downloads

2

Version

1.2.3

License

MIT

Last publish

Collaborators

  • titulus_desiderio