lundi 29 décembre 2014

Unit Test before Nuget Publish in TFS 2013

I have a class library that I publish to our internal nuget server. Inside of a MSBuild script, I use nuget.exe to publish it. The project also has a comprehensive unit test assembly. It seems that TFS uses the build script to build the project, deploys the nuget package, then runs the unit tests. Obviously, this is less than ideal. The unit tests should run first, then the deploy.


How would one configure TFS to do this? Maybe a postbuild script that runs nuget.exe publish?


Aucun commentaire:

Enregistrer un commentaire