Unit tests for witches.
Verify if you have node and npm installed.
$ yarn global add nomsjs
$ yarn add nomsjs
Create your test file
// demo.test.js
suite('All demo tests', () => {
test('Should return a correct number', () => {
return assert(22, 22);
});
test('Should return a correct number', () => {
return assert(22, 23);
});
})
Run your unit tests
$ noms demo.test.js
Result:
Create you test file
// demo.test.js
const noms = require('noms')();
noms.suite('All demo tests', () => {
noms.test('Should return a correct number', () => {
return noms.assert(22, 22);
});
noms.test('Should return a correct number', () => {
return noms.assert(22, 23);
});
})
Run you unit tests
$ node demo.test.js
To keep better organization of releases we follow the Semantic Versioning 2.0.0 guidelines.
Find on our issues the next steps of the project ;)
Want to contribute? Follow these recommendations.
See Releases for detailed changelog.