azer / prova

Test runner based on Tape and Browserify
Other
333 stars 30 forks source link

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

Closed aghassemi closed 9 years ago

aghassemi commented 9 years ago

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.

aghassemi commented 9 years ago

Thanks for merging.

azer commented 9 years ago

released as 1.14.3