Native MSTest XmlReport Schema

Jan 11, 2011 at 10:12 AM



I just tried to run the unit tests using the Generic Test method. (

Using this type of test execution provides the possibility to return a Result file which contains all results. But this result file must be in the VS-valid format.

More information about the format can be found here (SummaryResult.xsd, which you can find in the folder <drive>:\Program Files\Microsoft Visual Studio 8\Xml\Schemas.);k%28TargetFrameworkMoniker-%22.NETFRAMEWORK%2cVERSION%3dV4.0%22%29&rd=true

Would you mind to add a parameter switch to change the resultoutput to the VS-valid format??? Then it sould be very easy to use StatLight directly with the TFS and VS integrated Test Features.

Best regards


Jan 11, 2011 at 12:42 PM

I spike this a while ago- but didn't push it into the trunk because no-one had asked for the feature yet.

Could you review the last three commits here

If possible try to run it and let me know if that might work for you? If so, I'll try to get it merged into the trunk soon enough.

Jan 11, 2011 at 3:17 PM


thanks for the fast reply.

A short test was working successfully. I will try some more test, but looks good.

For everybody else don't forget --MSGenericTestFormat to get the right output ;-)

Would be great to get this as a standardfeature.




Jan 12, 2011 at 2:15 AM

Ok, I merged the changes up into the trunk and - let me know how this goes (FYI: Not well tested - it was a spike I did...)

Jan 12, 2011 at 1:47 PM

ok, I synced the trunk and build it.

Now I also tested with some more projects and test.

And everything works fine. Until now I did not had any problem.

Again thanks for the fast reaction!

Jan 26, 2011 at 10:46 PM

What options are available for output format? I'm trying to use statlight as part of a Hudson CI build, the native format that is exported obviously is not nunit or mstest.

Is this new MSGenericTestFormat in the released code yet as it didnt seem to have any affect for me.

I'm using a command like this ($Values are powershell variables that  are replaced with ovious values)

$StatLightExe --XapPath=$XapFile --ReportOutputFile=$OutputDir\$XapFilenameOnly-Results.xml --MSGenericTestFormat -debug=true --ShowTestingBrowserHost

Idealy I'd like to see an NUnit format as that will integrate with Hudson CI.


Jan 27, 2011 at 4:14 AM

Correct the new MSGenerictestFormat is only in the trunk (source) - It should be fairly easy to get the source and build it yourself. Go to and download the source. you should then be able to run build-Full-Release-skip-tests.bat to generate a build to use.

Hope this hleps

Jan 27, 2011 at 4:17 AM

Regarding an NUnit output format, it should be relatively easy to implement. I don't have time right now, but would love any contributions. If I could get an xml schema definition we could probably get it done sooner than later...