So far we have been using a mix of NUnit and MSTest for DotNet project. We simply specify the DLL to run the test from with no issue. However, we have a project that require to run a script to configure a database prior to running the test.
Manually, we can run the script using the testconfig before the actual test with no problem. However we failed to make the same setup work under TeamCity.
We tried to add the MSTest metadata file (vsmdi) but without success. We also tried to use the config file (testrunconfig) in the section available in TeamCity but still nothing.
The config file for the test is as follow (the script to run is TestSetup.cmd)
<?xml version="1.0" encoding="UTF-8"?>
<TestRunConfiguration name="RxAssystLib.Test" id="6d2ab443-190f-4c00-940e-a02cb049dfb9" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2006">
<Description>This is a default test run configuration for a local test run.</Description>
<Scripts setupScript=".\RxAssystLib.Test\Script\TestSetup.cmd" />
In the attached files, we've included the screen shot for our setup.
Should that setup work as expected?
Thank you in advance.