Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
If you drop a putStrLn or traceM into the middle of a test, you'll get output like this:
It would be rather convenient to have an option to have the test output and the test execution itself on the same thread.
Hspec runs all tests that are not explicitly marked for parallel execution on the main thread, exactly for that reason.
But it's true that this very requirement increases code complexity quite a bit.
Sent from my iPhone
Tasty's architecture makes running independent from reporting — both logically and in terms of threads.
This allows to plug different (and even multiple) reporters easily, but this particular request it makes hard to accomodate.
The situation can be improved somewhat by enabling buffering (#101 (comment)). The output wouldn't be interleaved like it is right now, but it still wouldn't be synchronized.