Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In case any test fails, let it run in terminal #425

Closed
agauniyal opened this issue Feb 29, 2016 · 1 comment
Closed

In case any test fails, let it run in terminal #425

agauniyal opened this issue Feb 29, 2016 · 1 comment

Comments

@agauniyal
Copy link

As title says, atleast when a test fails, either execute it on terminal or let the output run on terminal instead of just capturing output and showing it afterwords. I'm requesting this because when you use capture and display, many test frameworks disable colouring/other formatting, because they're not directly outputting to a terminal. And when errors are in big numbers, non-formatted errors are hard to read compared to some nicely formatted errors.

My current workaround is to directly execute the generated binaries in test directory to see the output.

@jpakkane
Copy link
Member

It's not possible to grab the output afterwards. The only way to get the output to both screen and log is to run the test twice. This becomes very confusing if the test behaves nondeterministically.

Many frameworks have command line switches to always force coloring on, you might want to check if yours does and, if not, file a bug on the framework in question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants