Forum Discussion

vcheung's avatar
vcheung
Occasional Contributor
13 years ago

Is there a way to dynamically add NUnit tests to the UnitTesting section of a project in c#?

So I'm looking at the ItcIntegration object and tried using get_Project(<project name>) to get a ItcProjectIntegration object.



But after that, the ItcProjectIntegration object only has a AddUnit(String) method which doesn't seem like it can do both of the following with 1 parm:



A) pick a nunit dll on the file system

B) add it as a UnitTesting test item and specify output xml, etc





Is this an unsupported feature or am I just looking at the wrong thing?



1 Reply


  • Hi Vincent,


     


    The AddUnit method adds a script unit to the project. Currently, there is no way to add the NUnit test dynamically. However, we have an appropriate suggestion in our DB, and your request has increased its rating. Thanks.