nomsjs

Unit tests tool for witches.

MIT License

Stars
21

N.O.M.s

Universal/isomorphic javascript unit tests for witches.

Table of contents

How to install

Verify if you have node and npm installed.

Module

$ yarn add nomsjs -D

Usage

Create your test file

// demo.test.js

const { suite, test, assert } = require('nomsjs');

suite('All demo tests', () => {

  test('Should return a correct number', () => {
    return assert(22, 22); // Passed
  });

  test('Should return a correct number', () => {
    return assert(22, 23); // Failed
  });

});

Run your unit tests

$ node demo.test.js

Result:

All automatic tasks

  • npm test - Run all tests.
  • npm run test:unit - Run unit-tests only.
  • npm run test:integration - Run integration-tests only.
  • npm run lint - Run ESlint validations for code quality.

Docs

See all Docs and API reference here

Versioning

To keep better organization of releases we follow the Semantic Versioning 2.0.0 guidelines.

Contributing

Find on our issues the next steps of the project ;) Want to contribute? Follow these recommendations.

History

See Releases for detailed changelog.

License

MIT License Afonso Pacifer