afonsopacifer / nomsjs

:crystal_ball: Unit tests tool for witches.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

Test Results

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

About

:crystal_ball: Unit tests tool for witches.

License:MIT License


Languages

Language:JavaScript 98.6%Language:Shell 1.4%