AxoCover icon indicating copy to clipboard operation
AxoCover copied to clipboard

Not all NUnit tests are shown in test explorer list

Open gps7 opened this issue 5 years ago • 0 comments

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?

gps7 avatar Jan 02 '20 15:01 gps7