Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Unit testing for a .NET app using Jazz Build Engine/RTC

Hello,

I have been building a .NET application in C# and so far, have implemented https://jazz.net/wiki/bin/view/Main/SCM15MinutesDemo with email notification.
I was trying to get Unit test thing working, but noticed on internet and everywhere that Ant supports JUnit, hence stuck again :(
Is there a way to use ANT Tasks for UNIT Testing ??? Please help..

Somethings which I tried was, executing UnitTests.dll using MSTest.exe ( using
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe" /testcontainer:E:\build\Source\MyProject.UnitTests\bin\Release\MyProject.UnitTests.dll /resultsfile:E:\buildscript\results.xml ).It did not help me much, still trying .. (was I on right track, or need something else to do???) EVENTUALLY, I want a HTML test report.

I am also not able to build solution in Release mode, and Release folder is not getting created along with debug folder in the bin of project. Is ( "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" MyProject.sln /Rebuild Release ) , the way to build solution in release mode (when the command is used the batch file)?

I am not sure, how to get UNIT Test thing implemented for C# application here.. Please guide, EVENTUALLY, I want a HTML test report created.Is there a way to use ANT Tasks for the same? or something else? Please guide/suggest/help, if possible, with CODE SNIPPETS etc? Thank you..

Regards,
Geny
p.s. Sorry, for reposting it under this category too, was not sure. Sorry. Thanks for help, will greatly appreciate. Thanks..

0 votes



One answer

Permanent link
Hi geny,

Questions about the usage of Jazz would be better posted in the Using Team Concert forum. This forum is more for how to extend RTC with new plugins/extensions.

You can use the mstestLogPublisher Ant task to publish the .TRX file from MSTest. See the How can I publish test results? entry in the Build FAQ.

See also http://jazz.net/forums/viewtopic.php?t=5906

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Jan 12 '10, 9:29 a.m.

Question was seen: 4,957 times

Last updated: Jan 12 '10, 9:29 a.m.

Confirmation Cancel Confirm