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

Notification

Icon
Error

Can't See Tests with Nunit Category Attribute
CoolBreeze
#1 Posted : Monday, April 29, 2019 6:56:57 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/11/2014(UTC)
Posts: 58
Location: United States of America

Was thanked: 6 time(s) in 6 post(s)
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
Remco
#2 Posted : Monday, April 29, 2019 9:18:34 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,646

Thanks: 734 times
Was thanked: 936 time(s) in 892 post(s)
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.
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.020 seconds.