I'd like to be able to "auto commit" anything where the tests build, but log a different message depending on whether the tests pass. I don't think this is currently possible. stack test --no-test or similar would solve the problem, as would a more general system where you could insert commands into the process.
Apologies if this is a solved problem that I can't figure out.