Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elldritch/humdrum
A simple daemon that compares a script's output against an expected output file.
https://github.com/elldritch/humdrum
Last synced: 5 days ago
JSON representation
A simple daemon that compares a script's output against an expected output file.
- Host: GitHub
- URL: https://github.com/elldritch/humdrum
- Owner: elldritch
- Created: 2013-12-09T19:00:09.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-08T04:49:57.000Z (almost 11 years ago)
- Last Synced: 2024-04-13T16:19:14.344Z (7 months ago)
- Language: CSS
- Size: 387 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Humdrum
A simple script that continuously compares a script's output against an expected output file.## Installation
Install Node.js, then install Humdrum with `npm -g install humdrum`.## Usage
Run `humdrum -o ` to start. Humdrum captures `stdout`, comparing execution output against a file of expected output. For example, to compare the output of a Python script, you can run `humdrum python3 script.py -o expected-output`.Humdrum is built on top of [Nodemon](https://github.com/remy/nodemon), and will accept any flag that Nodemon accepts. For example, to watch `.coffee` files as well as `.js` files, you can run `humdrum node script.js -e js,coffee,litcoffee`. Humdrum's file watching behaviour is identical to that of Nodemon's.
## Known Issues
1. Running humdrum with invalid commands causes a `spawn ENOENT`. A `SIGINT` will then cause a further error when killing the child process and input to that terminal will produce a `read EIO` error.## License
© 2013 Lehao Zhang
Released under the MIT license.