Details
-
Type:
Enhancement
-
Status:
Closed
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Release 1.1
-
Component/s: None
-
Labels:None
-
Approval:Ok
Description
clojure.test/run-tests does not return a value, making it difficult to integrate with build frameworks such as Ant and Maven.
This patch was written by Jason Sankey, who is a registered contributor.
The patch modifies run-tests to return the test summary results (the same map sent to the report function).
The patch also adds a new function, "successful?", which returns true if the summary indicates that there were no failures or errors.
A test script or main program can call (successful? (run-tests ...)) and then indicate success or failure in System/exit.
Converted from http://www.assembla.com/spaces/clojure/tickets/193
Attachments:
test-ideas-summary.patch - https://www.assembla.com/spaces/clojure/documents/dDYqFAQsKr3RHfeJe5aVNr/download/dDYqFAQsKr3RHfeJe5aVNr
fix193-1.patch - https://www.assembla.com/spaces/clojure/documents/cdsoTU3Pmr3Q3BeJe5aVNr/download/cdsoTU3Pmr3Q3BeJe5aVNr