Cannot locate referenced projects to run tests

Hi,

I am new to Team City. I just installed it and play around. I found a weird problem for which I was not able to find an answer.I am using Visual Studio 2008. Let's say I create a simple project ABC (Class library) and another project Test (Class Library). Project Test references ABC project and contains a test method (I am using nUnit 2.5.1 and configured the runner to use sln2008). The test just calls a method from ABC. Everything compiles and works perfectly locally. But once I try to run a build on TeamCity I get an error:

Test(s) failed. System.IO.FileNotFoundException : Could not load file or assembly 'ABC, etc.

I checked the directory used by the TeamCity agent (Test\bin\Release) and it contains ABC.dll. So, I have no clue what I did wrong/or what goes wrong?
The configuration I use:
VS2008
.NET 3.5
nUnit 2.5.1
sln2008
the account the Agent is using has proper (admin) rights on the machine.

Does any one have ideas?

3 comments
Comment actions Permalink

Hello, please check you have specified a path to the assembly, not it's name.
Please attach a screenshot on the build configuration.

Thanks!

0
Comment actions Permalink

Hi Eugene,

Thanks for the quick reply. I think I found the source of the problem and it may be useful to share it with other newbies as well.
When I was setting up sln2008 Runner in "Run Test From" field I specified the default **\*.dll which I found as an example in the documentation. Once I changed it to point to the dll which contained my tests everything started to work properly.

I don't know if this behaviour can be considered a bug (probably not) but in either case there should be some reference to such scenarios in the documentation. Right now the documentation is not clear on the subject.

Thanks a lot.

0
Comment actions Permalink

I think the question can be considered answered.

0

Please sign in to leave a comment.