Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Support Visual Studio 11 Test executable (VSTest)
MarcB
#1 Posted : Thursday, May 31, 2012 1:52:48 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/31/2012(UTC)
Posts: 1
Location: Montreal

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!
Remco
#2 Posted : Thursday, May 31, 2012 9:12:34 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,140

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download