Skip to content

Commit b7ce543

Browse files
committed
tests: Make tests return non-zero status on failure
All the test were being run properly, and failures could be locally observed by reading console output. However, the travis-ci script was assuming that the tests would return a non-zero status code on failure, which was not happening. In order to correct this, the following line was added to the bottom of tests/Test.ml: Pa_ounit_lib.Runtime.summarize () As the name implies, this will summarize the results of the test run and in addition return a non-zero status if any tests failed.
1 parent 81f491c commit b7ce543

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/Test.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,5 @@ module RoundTrip = struct
101101
(prop_roundtrip parse marshal))
102102

103103
end
104+
105+
Pa_ounit_lib.Runtime.summarize ()

0 commit comments

Comments
 (0)