Is it possible to save the result generated from a PHPUnit test as a text file or as a html file so that we can review it later and send it to concerned person through email? Simply my requirement is to save the out put,that we get in an IDE (Netbean or Eclipse) or in the command prompt into a file in the local system(the system where i perform the test) . after searching a long i did not find a required solution. if anybody has a solution please help me.
+2
A:
if you're using the command prompt on unix, couldn't you just use the >
to redirect the output to a text file?
phpunit ArrayTest > MyArrayTestOutput.txt
Most IDEs will also let you copy/paste the output of their buffer/terminal to wherever your heart desires.
sleepynate
2010-08-11 14:28:43
@sleepynate thanks for your reply. this solved my problem. for those who are also facing similar problem following line may help.To append further test results we can use ">>" instead of ">" in the above example given by sleepynate . now it would be phpunit ArrayTest >> MyArrayTestOutput.txt.
sidhartha
2010-08-13 13:52:31