Build/Test Issues

Can't See Tests with Nunit Category Attribute

Started by CoolBreeze on 1,739 views

I added a Category attribute like this:

Imports NUnit.Framework

<TestFixture()>
<Category("NightlyBatchTestRun")>
Public Class Test_Planet
<Test()>
Public Sub Add()
End Sub
End Class

I type "NightlyBatchTestRun" in NCrunch Tests Search box.

I don't see the Add test in the NCrunch Tests window.

If I type in "Add" into the Search box NCrunch Tests window shows
NightlyBatchTestRun in the tree structure and the Add test.

I've looked at every possible related option and I can't seem to see
the Add test if I search by NightlyBatchTestRun.

I must be overlooking something.

Visual Studio 2017
NCrunch 3.23.0.10

Thanks, Ed

Edited

Hi Ed,

The current implementation of NCrunch's search option is pretty limited. We've been looking at ways to expand this with some interesting syntax options but any changes here are still a long way out. Search will currently only work on test name.

To find a test with a particular category, it's better for now to just change the grouping option of the tests window so that it groups the tests by their respective categories.

Edited

Post a reply

Log in to reply.