0

Is it possible to write the test result to a excel like pass or fail using nunit and C# . If any example can be provided it would be great .

Anand S
  • 760
  • 5
  • 13
  • 28

1 Answers1

1

With nunit-console you can export test run results to XML and specify XSLT transform. With XSLT transform you can, for example, convert XML to CSV and then use Excel to do whatever you want to do with test run results in CSV.

Community
  • 1
  • 1
nameless_one
  • 139
  • 6
  • Thank u , completely lost when it come to nunit-console command , I know i have to run this command "nunit-console /transform:myTransform.xslt nunit.tests.dll" i get the following error "fatal error: invalid arrgument:/transform:myTransform.xslt" – Anand S Feb 13 '13 at 09:50
  • It seems like this option was deprecated in Nunit 2.6. But you can still use [external XSLT processor](http://stackoverflow.com/questions/9297282/apply-xslt-to-an-xml-file) – nameless_one Feb 13 '13 at 11:40