still working, carefull in production enviroments
Parse JSDOC of functions and generates tests for them.
/**
@test divide(10, 2) == 5
@test divide(21, 7) > 20
@throw divide(2, 0) - /Division by zero/
*/
function sum(a,b){
if (b==0)
throw new Error("Division by zero");
return a/b;
}
$ npm install testizi
- write your code
Tip: Try copy the sample above. Try force a fail.
$ npm run testizi SOURCE_DIR TARGET_DIR
- async (pending)
- callbacks (pending)
- promises (pending)
- chai/expect.js
- mocha (pending)
- chai/assert (pending)
- Why this project?
lazy to write repeated codes
- This project solve all situations for write unit tests?
No, just some situations, generally, repetitive situations.
- Can I help this project?
Yeah! We need help!
- How I can help?
Writing documentations, testing, coding...