Feature Suggestions

Support Visual Studio 11 Test executable (VSTest)

Started by MarcB on 6,708 views

It would be great to support the new test executable used in Visual Studio 11.

It's the only test framework that support new .Net 4.5 Async tests pattern with the "await" keyword in a test.

For now the following test fails.

[TestMethod]
[ExpectedException(typeof(NotSupportedException))]
public async Task CreateAsync_Criteria_ThrowNotSupportedException()
{
TaskCompletionSource<IEnumerable<object>> tcs = new TaskCompletionSource<IEnumerable<object>>();
await CreateAsync(o => tcs.Task, IdCriteria.Create("An Id"));
}

We need to exclude the async tests and run them with the console executable "vstest.console.exe".

Thanks. Nice tool!
Hi Marc,

Thanks for posting! Yes, NCrunch will need to support MSTest's async tests. This will be done with some additional work to bring NCrunch up to speed with VS11 in the long term. Likely this will be done without the 'vstest.console.exe' though - as NCrunch requires greater control over the test environment.

I'm glad your enjoying NCrunch :)


Cheers,

Remco

Post a reply

Log in to reply.