问题
I am running multiple Junit tests, running a test results in the console being cleared and populated with the log of the current test. Where will the log file containing the previous test logs be stored. Is there any way in eclipse, by which i can see such deleted logs.
回答1:
Try the following:
- Open your Run configuration
- Select the tab
Common
- In the
Standard Input and Output
group activateFile
and set a file - Select the
Append
Checkbox - Run your configuration
That way everything which is printed to the console will also be printed into that file.
来源:https://stackoverflow.com/questions/10929235/view-deleted-console-output