axodox / AxoCover

Nice and free .Net code coverage support for Visual Studio with OpenCover.
https://marketplace.visualstudio.com/items?itemName=axodox1.AxoCover
MIT License
248 stars 60 forks source link

Not all NUnit tests are shown in test explorer list #213

Open gps7 opened 4 years ago

gps7 commented 4 years ago

Hi, I have tests in base class with arguments and using Values attribute to declare all combinations. I am not able to understand why AxoCover test list does not show all tests.

Example: AxoCover is showing only 3 NUnit tests but it should contain 12.

        /// <summary>Verifies the behavior of the <see cref="ATestClass"/> class.</summary>
    [TestFixture, Timeout(10000)]
    public class ATestClass : ExecuteAfterMethodBase
    {
    }

    /// <summary>A base class.</summary>
    public abstract class ExecuteAfterMethodBase
    {
        [Test]
        public void ExecuteAfter4FunctionArgumentNullFail()
        {
            Assert.Pass();
        }

        [Test]
        public void ExecuteAfter4FunctionArgumentNullFailForFunc()
        {
            Assert.Pass();
        }

        [Test]
        public void ExecuteAfter4FunctionArgumentNullSuccess()
        {
            Assert.Pass();
        }

        [Test]
        public void ExecuteAfter4FunctionHappyPath([Values(true, false)] bool returnCallingThread,
            [Values(true, false)] bool useCompletionAction)
        {
            Assert.Pass();
        }

        [Test]
        public void ExecuteAfter4FunctionPrimaryTaskFailedError([Values(true, false)] bool returnCallingThread,
            [Values(true, false)] bool useCompletionAction)
        {
            Assert.Pass();
        }

        [Test]
        public void ExecuteAfter4FunctionPrimaryTaskCancelledError([Values(true, false)] bool returnCallingThread,
            [Values(true, false)] bool useCompletionAction)
        {
            Assert.Pass();
        }

        [Test]
        public void ExecuteAfter4FunctionTaskFailedError([Values(true, false)] bool returnCallingThread,
            [Values(true, false)] bool useCompletionAction)
        {
            Assert.Pass();
        }
    }

Anyone could tell me what's wrong?