azer / prova

Test runner based on Tape and Browserify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prova doesn't exit with proper failure exit code when used with --browser

aghassemi opened this issue · comments

When using Prova with --browser option, if the tests fails, Prova still exits with code 0. Without --browser option however it exists with code != 0 code which is fine.

In short:

prova t.js --browser --quit || echo "failed"

does not work

but

prova t.js --quit || echo "failed"

works fine.

Proper exit code would really help scripting ( e.g fail a CI task ) without relying on parsing the output.

Thanks for merging.

released as 1.14.3