Referencing MS UnitTests

Hi

 

I'm not quite sure how i can reference MS Tests .

I build one solution which have a a Code Project named Foo and a Test Project named Foo.Tests Project.

In which path are the resulting assemblies stored?

  tried using the wildcard

**.Tests.dll

 But the build tells me the dll was not found.

Also I'm using 2 stages, the first stage makes the build, the second has the MS Test action.

What am I doing wrong?

And Furthermore which path do I have to use when i reference builded output files?

The files are stored under the workspace folder. You can use the variable $Workspace$ to refer to this folder e.g.  $Workspace$\output\**.dll

You can set up workspace rules in the stage options to control which files are copied between stages. See http://wiki.finalbuilder.com/display...ge+Options for more information. 


You should probably also set the OutputPath property on the MSBuild action.

hmm I use the VisualStudio Build action there isn’t a property like that. And the output that is defined in the solutions isn’t filled.
It’s a relative path and i checked it in the path used by continua. the target folder is empty.

The way I resolved this is by adding a copy file action after the VS action in the configuration stages, which copies the files from the $Source.Repo$…VSproject\bin\debug|release folder to the \Output\ folder and then run your MS Build (of Nunit) tests against the files in that folder.

I generally also edit the Stage options -> Artifacts and include things like

Output*.zip
Output*
.msi
Output\Tests*.trx
nunit | Output\Tests*
.xml

So I can retrieve important files from the build.

Posted By Jenasys Design Pty Ltd on 15 Apr 2013 05:10 AM
and then run your MS Build (of Nunit) tests against the files in that folder.  

should read:

and then run your MSTest (or Nunit) actions against the files in the \Output\Tests\** folder.

You know you don’t have to copy the files to the \output folder on the agent, just add a Workspace rule (stage options) that copies the files from where ever they end up (assuming you have relative paths in your project settings in vs.net).

For example:

   $Source$ > Source 

in Repository Rules (Stage Options) copies the repository files to the \Source folder on the agent workspace.

  Output < \Source\Repo\VSproject\bin\release\*.dll

in the Workspace Rules for the Build stage to copy the resultant dlls from the agent workspace back to the Output folder on the server workspace.

  Output\**.dll > Output

in the Workspace Rules for the Test stage to copy the dlls from the server workspace to the agent workspace.





Cheers for the example Dave.