PDA

View Full Version : spring and mstest


zerg78
11-20-2006, 11:31 AM
Hi all.
I have problem with usage mstest.
My project's structure looks like SpringAir. But I use mstest instead NUnit. Build and run by Visual Studio ends success, but running from command prompt (current directory is ...\trunk\Build\Debug\):

mstest /detail:errormessage /testcontainer:MyProj.Core.Test.dll

I have result:

Results Top Level Tests
------- ---------------
Failed MyProj.Core.Test.AuditServiceTest.AuditDaoTest
[errormessage] = Initialization method MyProj.Core.Test.AuditServiceTest.TestInitialize threw exception. Spring.Objects.Factory.ObjectDefinitionStoreExcept ion: Spring.Objects.Factory.ObjectDefinitionStoreExcept ion: IOException parsing XML document from file [C:\development\projects\MyProj\trunk\Build\Debug\T estResults\zerg78 2006-11-20 11_49_04\Out\Services.xml] ---> System.IO.FileNotFoundException: Could not find file 'C:\development\projects\MyProj\trunk\Build\Debug\ TestResults\zerg78 2006-11-20 11_49_04\Out\Services.xml'..

How I can resolve it?

Bruno Baia
11-25-2006, 06:10 PM
Hi,

you need to copy all the files needed by tests to the mstest output directory.
("C:\development\projects\MyProj\trunk\Build\Debug\T estResults\zerg78 2006-11-20 11_49_04\Out\" here)


Hope this helps,
Bruno