tapson-show-list

1.1.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i tapson-show-list

Weekly Downloads

0

Version

1.1.1

License

ISC

Last publish

Collaborators

  • an