This worked before SP1 was installed.
namespace Test
{
public class Adder
{
public int Add(int n1, int n2)
{
return n1 + n2;
}
}
}
namespace AdderTest
{
[TestFixture]
public class Class1
{
[Test]
public void AddTest1()
{
var add = new Adder();
var res = add.Add(2, 3);
Assert.AreEqual(5, res);
}
}
}
This command still works after SP1 installed
vstest.console.exe /usevsixextensions:true /framework:framework45 /platform:x86 AdderTest.dll
This one doesn't and it fails on every PC in our team where SP1 is installed.
vstest.console.exe /enablecodecoverage /usevsixextensions:true /framework:framework45 /platform:x86 AdderTest.dll
Error: The active Test Run was aborted because the execution process exited unexpectedly. Check the execution process logs for more information. If the logs are not enabled, then enable the logs and try again.
The logs show the following error:
V, 10664, 11, 2016/02/02, 15:00:09.114, 2115392201142, vstest.console.exe, TestRunRequest:SendTestRunMessage: Starting.
I, 10664, 11, 2016/02/02, 15:00:09.116, 2115392205435, vstest.console.exe, TestRunRequest:SendTestRunMessage: Completed.
E, 10664, 10, 2016/02/02, 15:00:23.722, 2115441528953, vstest.console.exe, TAEF Engine Execution: [HRESULT: 0x800706BA] Failed to create the test host process for out of process test execution. (The test host process failed to run with exit code 0xc0000005. Failed to set up communication with the test host process. (The connection attempt timed out.))
It appears SP1 installed all new vstest exe's and DLL's, also seemed to install the TAEF stuff, although I am using windows 7
Using NUnit 2.6 & the VS Nunit Test runner extension (also tried NUint 3.0 with it's test runner - still broke)
We are using VSTEST because our code is a combination of C++/C# and 64 bit components. We need unite and coverage tests.
Update:
Used VS 2105 to write an intellitest - that fails the same way running coverage.