1.1.1 • Published 9 years ago

tapson-show-list v1.1.1

Weekly downloads
1
License
ISC
Repository
-
Last release
9 years ago

tapson-show-list npm package npm dependencies

A tapson protocol test result renderer, for the terminal.

Shows planned tests immediately in yellow, and turns them green or red when they finish (along with the actual message in a darker green or red).

demonstration

Just pipe it tapson on stdin.

yourTests | tapson-show-list

If you want it to update whenever something changes, that's another tool's job. On Linux, a shell script with inotifywait works great:

# Stores test process ID
PID=""

# Wait for changes to input files
inotifywait --quiet -m -e modify whatever-input-files |
while read file; do

    # Kill the old process
    if [ ! -z "$PID" ]; then
        kill "$PID"
    fi

    # Run process in background and save process id
    your-tests | tapson-show-list &
    PID=$!
done;

License

ISC.