Im trying to log my tests output to a file as well as running them concurrently.
For this Im trying to use the multiprocess plugin and the xunit plugin.
Im aware that they dont work together, xunit doesnt log anything because mutiprocess doesn't send the output directly.
https://github.com/nose-devs/nose/issues/2
What Im looking for is any alternative that allows me to write down the output to a file.
The reason being is that Im running Selenium Tests, and everytime I get an error, the stacktrace is so large that stdout is basically completely filled out.
Something that alleviates might help out as well, the selenium documentation is pretty scarce about how to configure logging output.
I also tried a pretty basic redirection of stdout:
#nosetests > file.txt
But that doesnt work either.
Best Answer
If you want to use basic redirection from the shell you can do
But based on your question it seems you'd rather do something like:
Full example:
Looks like it does not work as you said :)
But
And
Do.
References:
Redirect stderr and stdout in a Bash script