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

Notification

Icon
Error

Test Never Completes - Visual Studio 2105
MikeWard
#1 Posted : Sunday, January 11, 2015 10:01:46 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/19/2011(UTC)
Posts: 33
Location: Ann Arbor, MI

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
C# 6.0 project in Visual Studio 2015 using NCrunch 2.11.0.12

I've got two projects. One is the product, the other is the unit tests. I have one unit test as follows:

using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTests
{
[TestClass]
public class LineContinuationTests
{
[TestMethod]
public void OrderedListRegExTests()
{
var test = "1";
test.Should().Be("1");
}
}
}

I've used NCrunch quite a bit on other projects so I'm familiar with some of the pitfalls. Tried the usual turn-off parallel execution and copy references stuff.

The test gets queued and appears to be running but never completes. Thoughts?

P.S. This is a small open source project so I can provide the git repo if needed.
Remco
#2 Posted : Sunday, January 11, 2015 11:40:13 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi,

Thanks for sharing this issue. I'm having some trouble reproducing it on my end ... Are you able to share a code sample? Note that you can submit code through the (- BROKEN LINK -)contact form[/url] if you don't have it shared publicly somewhere.

It's also possible that the execution task is failing but not reporting its status correctly in the Tests Window. Do you see anything of interest in the Processing Queue Window?


Cheers,

Remco
MikeWard
#3 Posted : Monday, January 12, 2015 2:40:54 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/19/2011(UTC)
Posts: 33
Location: Ann Arbor, MI

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Here's the repo

https://github.com/mike-ward/Markdown-Edit.git

Use the V1.3 branch.

Thanks for looking into this.
Remco
#4 Posted : Monday, January 12, 2015 4:13:33 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Thanks for the repo. I've confirmed that this is being caused by a compatibility issue between .NET 4.5.2 and NCrunch.

To work around this problem, I'd suggest just changing the targeted framework to 4.5.3. It may be enough to simply change this for the test project without touching the production project.

A proper fix for this will be out with the full release of NCrunch 2.11.
MikeWard
#5 Posted : Monday, January 12, 2015 2:13:31 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/19/2011(UTC)
Posts: 33
Location: Ann Arbor, MI

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Changing just the test project to 4.5.3 worked. Thanks.
1 user thanked MikeWard for this useful post.
Remco on 1/12/2015(UTC)
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.032 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download