I am using TeamCity 5 with Git VCS and Visual Studio 2010 SLN.
My solution has a class library containing a number of XUnit 1.5 tests. The post build event in this project runs tests.
$ (SolutionDir) libs \ XUnit-1.5 \ xunit.console.exe $ (SolutionDir) MyTestProj \ $ (OutDir) \ MyTestProj.dll
This is great for running all my tests on my dev machine and works great with the TeamCity build agent.
However, I recently added a new XUnit test function for this project, passed it to github, which was selected by TeamCity, and the assembly was completed. But the new test was not included in the run.
It seems that the source is being issued to another directory (for example, c: \ checkedoutsource) in my Git repository (c: \ my_source), and when the SLN build runner builds my solution, the post build 'run tests' event targets c: \ checkedoutsource \ bin \ debug \ MyTestProj.dll, not c: \ my_source \ bin \ debug \ MyTestProj.dll
Does anyone have any suggestions on how to get TeamCity to create my test project and fire the post build event for a newly created test build? (without writing mahoosive MSBuild script files).
i.e. is it possible to set visual studio variables like $ (SolutionDir) in the assembly runner?
Hope this made sense, thanks
source
share