You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when working on some test specs and having stack rebuild and test on file modification, i observe some strange output that appears to come about due to the order of text output to the console.
the behaviour i note is output like the following
...
Compl[t3e1dmTest suite failure for package thing-0.1.0.0
thing-test: exited with: ExitFailure 1
Logs printed to console
2[a0cmtiToynp(es )h.e
lp for available commands. Press enter to force a rebuild.
(note that control characters have been interspersed amongst regular output)
stack new thing hspec (new project from the hspec template)
stack build --file-watch --test build and watch for changes and run tests
make some change to one of the tests and make it fail
i just added to the existing spec
it "fails" $ do
True `shouldBe` False
now, i only observe this quirk when the tests fail, and when i actually make a change to the file itself, as opposed to just pressing enter in the stack terminal to re-build.
(i'll note that it works fine if i press enter; with the failing output suitably coloured red; in an earlier version of stack i was using i got similar garbled text, but the output was no longer red when it failed. in this version, it's always red, but the final few lines are garbled.)
The text was updated successfully, but these errors were encountered:
Initially, this was in preparation for a resolution to #1635. However, I
I don't think I'll be using the approach of sending stderr / stdout via
logging. Some tests could emit tons of output, and I'd rather avoid the
overhead.
when working on some test specs and having stack rebuild and test on file modification, i observe some strange output that appears to come about due to the order of text output to the console.
the behaviour i note is output like the following
(note that control characters have been interspersed amongst regular output)
my environment
to reproduce this bug,
stack new thing hspec
(new project from the hspec template)stack build --file-watch --test
build and watch for changes and run testsi just added to the existing spec
now, i only observe this quirk when the tests fail, and when i actually make a change to the file itself, as opposed to just pressing enter in the stack terminal to re-build.
if it's relevant, i'm using
zsh
for my shell(i'll note that it works fine if i press enter; with the failing output suitably coloured red; in an earlier version of stack i was using i got similar garbled text, but the output was no longer red when it failed. in this version, it's always red, but the final few lines are garbled.)
The text was updated successfully, but these errors were encountered: