Build/Test Issues

NCrunch Test Window shows tests still running

Started by jrutila on 2,384 views

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?

Edited

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?
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.

Edited

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.
I have narrowed it to this test:


    [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?
Nice work narrowing this down. Would you like to try the build below to see if this resolves the problem?

NCrunch_Console_3.26.0.3.msi
NCrunch_Console_3.26.0.3.zip
NCrunch_GridNodeServer_3.26.0.3.msi
NCrunch_GridNodeServer_3.26.0.3.zip
NCrunch_LicenseServer_3.26.0.3.zip
NCrunch_VS2008_3.26.0.3.msi
NCrunch_VS2010_3.26.0.3.msi
NCrunch_VS2010_3.26.0.3.zip
NCrunch_VS2012_3.26.0.3.msi
NCrunch_VS2012_3.26.0.3.zip
NCrunch_VS2013_3.26.0.3.msi
NCrunch_VS2013_3.26.0.3.zip
NCrunch_VS2015_3.26.0.3.msi
NCrunch_VS2015_3.26.0.3.msi.7z
NCrunch_VS2015_3.26.0.3.zip
NCrunch_VS2017_3.26.0.3.msi
NCrunch_VS2017_3.26.0.3.msi.7z
NCrunch_VS2017_3.26.0.3.zip
NCrunch_VS2019_3.26.0.3.msi
NCrunch_VS2019_3.26.0.3.msi.7z
NCrunch_VS2019_3.26.0.3.zip
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.

Post a reply

Log in to reply.