Hello,
 
The previous patch fixed the problem for the total test time, I
committed a similar patch [1] to solve the same problem at the test case
level.
 
Note regarding the current implementation: the time attribute value is
formatted using the active CultureInfo, meaning that these are both
possible output values:
- time="1.234"
- time="1,234"
 
This behaviour *could* be changed by setting the
System.Threading.Thread.CurrentThread.CurrentCulture explicitely.
 
Bernard

[1]
http://cvs.nant.sourceforge.net/cgi-bin/viewcvs.cgi/nant/nant/src/NAnt/T
asks/NUnit/XmlResultFormatter.cs.diff?r1=1.4&r2=1.5

 
 
>Hi all, 
>
>It was bugging me that I would receive "0" as the execution time for a
>test. Here is the fix that you need to apply at line 118 of the
Tasks\Nunit\XmlResultFormatter.cs
>file.
>
>// TODO: format the time value nicely ...
>double time = elapsedTime.Milliseconds;
>time /= 1000D; 
>_currentTest.SetAttribute(AttributeTime, time.ToString("#####0.000") );
>Feel free to refactor the above as you wish. I would have done a test
case
>for this, however I'm lazy and I couldn't find a .sln file with all the
>projects already loaded (sorry about that).

Z��^��h��왨��x%��Mj{]z������X���(��~��zw���i����l���q���z���l�X��)ߣ�ڞ�^��h���


Reply via email to