lundi 29 août 2016

Line numbers from HUnit-Plus / Distribution.TestSuite / stack test failures?

I'm using HUnit-Plus via stack test, which I believe makes use of Distribution.TestSuite.

When I get compilation errors, I get file paths and line numbers in the error. This is great because I can just click on the error in my editor and jump straight to the relevant code.

Other times there is no compilation error and instead I get output like this:

### Failure in testFoo: expected: 8

This isn't so great, because every time I have to navigate to the relevant test by hand.

Is there a way to get this setup to print line numbers and file paths for test failures?

Aucun commentaire:

Enregistrer un commentaire