neat-tasks
terminal task list for neat-log
Install
npm install neat-tasks
Usage
See example.js
var neatTasks = var neatLog = var output = var neatLog = var output = var neatTasks = var tasks = title: 'Count Down from 4' { statecount = 3 var interval = } var runTasks = var neat = neat
Tasks
Tasks are run one at a time. They can do anything and print out anything to ther terminal while running. Each tasks must have a title and a task function. Tasks can either pass or fail.
title: 'Task title' { // DO STUFF // Call done() when done } { // Should we skip this task? } { // neat-log view }
Use done([fail])
to complete the task.
- Pass: tests are considered passing if when calling,
done(fail)
,fail
is false. - Fail: Anything truthy is considered a failure. If you pass a string, it will print the message.
Use the skip cb([skip])
to skip the task.
- Skip: Anything truthy is considered a failure. If you pass a string, it will change the title after skipping
- Run: Pass false to run the test