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

Notification

Icon
Error

NCrunch Test Window shows tests still running
jrutila
#1 Posted : Wednesday, April 3, 2019 6:17:04 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/3/2019(UTC)
Posts: 4
Location: Finland

Was thanked: 1 time(s) in 1 post(s)
Hi, I have following situation: So, the NCrunch icon on Visual Studio is idle and it says "NCrunch engine is idle". The Tests window also shows like it is not doing anything. Still, part of the tests show as they would still be running. Any ideas?
Remco
#2 Posted : Wednesday, April 3, 2019 7:41:47 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for sharing this issue.

Is this happening for you consistently? Would you be able to submit a bug report after it's happened in your session?
jrutila
#3 Posted : Wednesday, April 3, 2019 7:56:13 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/3/2019(UTC)
Posts: 4
Location: Finland

Was thanked: 1 time(s) in 1 post(s)
This happens consistently on this specific project. Other projects are ok. I will submit the bug report (now that I found the way, thanks).

edit: I submitted the report. Please keep me posted.
Remco
#4 Posted : Wednesday, April 3, 2019 11:52:37 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Thanks for submitting the report.

At least one of the MSTest tests in this solution contains some strange parameter data in an array. This is probably using a custom DataRow. Are you able to narrow down which test is responsible? If you can get me the declaration of the test (with its attributes), I should be able to help troubleshoot further.
jrutila
#5 Posted : Thursday, April 4, 2019 11:40:04 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/3/2019(UTC)
Posts: 4
Location: Finland

Was thanked: 1 time(s) in 1 post(s)
I have narrowed it to this test:

Code:

    [TestClass]
    public class StringHelperTest
    {
        [TestMethod]
        public void StringToArray_Value_Not_Valid_Should_Return_Exception()
        {
            var ex = Assert.ThrowsException<ArgumentException>(() => StringHelper.StringToArray(null, null));
            Assert.IsTrue(ex.Message.Contains(ErrorStrings.Value_cannot_be_null_or_empty));
        }
        [DataTestMethod]
        [DataRow(null)]
        [DataRow(new char[] { })]
        public void StringToArray_DelimitersChars_Not_Valid_Should_Return_Exception(char[] argument)
        {
            var ex = Assert.ThrowsException<ArgumentException>(() => StringHelper.StringToArray("asdf", argument));
            Assert.IsTrue(ex.Message.Contains(ErrorStrings.Value_cannot_be_null_or_empty));
        }
   }


I have yet to find more about this, but do you spot anything weird right now?
Remco
#6 Posted : Thursday, April 4, 2019 11:06:49 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
jrutila
#7 Posted : Friday, April 5, 2019 6:20:56 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/3/2019(UTC)
Posts: 4
Location: Finland

Was thanked: 1 time(s) in 1 post(s)
It works! All the tests now look green and fine. Thanks!

I will install VS2019 soon and test it there also. I can report here if it doesn't work but can't see why it wouldn't.
1 user thanked jrutila for this useful post.
Remco on 4/5/2019(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.049 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download