Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet and nUnit automation

Tags:

nuget

nunit

I have a VS project and in the project properties under the Debug tab I set: Start External Program: D:\SolutionName\packages\NUnit.2.5.10.11092\tools\nunit.exe Command Arguments: projectname.dll

This lets me start nUnit and run the nunits tests dll and when I start debugging the project.

Is there a better way? We use TFS and not everyone installs the solution to d: and the version number in the path where NuGet installs it changes periodically.

Was hoping to some how grab the text of the nunit.exe path from the path in the VS: Project : References section that was placed there by NuGet. This way I wouldn't have to change it for nUnit version changes and other TFS users wouldn't have to change it either.

Any ideas?

like image 986
user965445 Avatar asked Nov 20 '25 01:11

user965445


1 Answers

You might want to take a look at this: http://lostechies.com/joshuaflanagan/2011/06/24/how-to-use-a-tool-installed-by-nuget-in-your-build-scripts/

like image 124
davidfowl Avatar answered Nov 24 '25 23:11

davidfowl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!