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: 79
Location: United States of America

Was thanked: 9 time(s) in 9 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: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 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.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download