Start a new topic

Error running tests

I have followed the instructions as detailed in the "Source Code Getting Started" which can be found at http://docs.virtocommerce.com/display/vc2devguide/Source+Code+Getting+Started

I am now able to execute the commerce manager by browsing to http://localhost/admin or by running through visual studio.


Using Visual Studio Community 2015 Test Explorer I invoked the Run All tests command. In the output window I get the following errors


------ Run test started ------

Test Run deployment issue: Failed to get the file for deployment item 'connectionStrings.config': System.IO.FileNotFoundException: Could not find file ..\PLATFORM\Modules\Order\VirtoCommerce.OrderModule.Test\bin\Debug\connectionStrings.config'.

Test Run deployment issue: Failed to get the file for deployment item 'Configs/AppConfig.config' (output directory 'Configs'): System.IO.FileNotFoundException: Could not find file '..\PLATFORM\Modules\Order\VirtoCommerce.OrderModule.Test\bin\Debug\AppConfig.config'.

========== Run test finished: 50 run (0:02:28.5916128) ==========  


In Summary 42 tests have failed and 8 have  passed.

Could you help me resolve this issue.



Hi Coninz,


thanks for you interest in Virto Commerce. Some of the tests require correct environment setup and you will need to use xunit to run them. For example we use the following command to run test on CI server:


PLATFORM\packages\xunit.runner.console.2.1.0\tools\xunit.console.exe "PLATFORM\Modules\Marketing\VirtoCommerce.MarketingModule.Test\bin\Debug\VirtoCommerce.MarketingModule.Test.dll" -trait category=ci

Hi Sasha,


Thanks for your reply. do you know the environment settings that go along with the setup to run the xunit.


The error that I am getting above indicates that it cannot find a file called connectinStrings.config

Login or Signup to post a comment