formatting-stack
formatting-stack copied to clipboard
formatting-stack.processors.test-runner/test!: return a useful value
Context
test! currently returns the fixed value nil. This makes it a limited primitive for creating more substantial functionality.
Task
Make it return a boolean depending on whether the test suite passed
Acceptance criteria
A boolean? is returned no matter what, even in face of exceptions (as they are common in WIP/failing/flaky tests)
Using a boolean now prevents expansion in the future.
What do you think about returning a map? It can yield :result? now, and possibly reports or tested-files in a later iteration.
Yeah returning the same map that clojure.test does seems best 👍