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

Notification

Icon
Error

Tests to execute on this machine when DoesNotHaveCategory still runs these test on the machine
Amir Kolsky
#1 Posted : Thursday, February 26, 2026 4:16:37 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/5/2021(UTC)
Posts: 6

((You really should allow pasting images directly into the posts like every modern forum system allows)

Note: Caches were deleted

Configuration ->
Filters ->
Tests to execute on this machine ->
TestFilterBuilder ->
When does not have category = Playwright.

(this is persistent - i can see it every time I open the configuration)

Here is the test header:

[TestCategory("Playwright")]
[TestMethod]
public async Task ShowsUrlAndPortWhenWebBasedSelected_Playwright()
{


SURPRISE! The test still runs.
Remco
#2 Posted : Thursday, February 26, 2026 10:54:08 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,501

Thanks: 1020 times
Was thanked: 1369 time(s) in 1270 post(s)
Amir Kolsky;18674 wrote:
((You really should allow pasting images directly into the posts like every modern forum system allows)


Sorry, I know it's annoying. The software of this forum is ancient and the image uploads were taken offline for security reasons. We get smashed by spammers here and I need to moderate actively to keep them under control.

Quote:
SURPRISE! The test still runs.


There's a couple of things that can cause this. Either the test category isn't being recognised by the engine, or the configuration setting isn't active.

The first thing I would check is to add the Test Category column to the Tests Window. You can right click on the column headers and turn it on. Check to see whether the test has the correct category assigned.

If you can submit a bug report after you've had this happen (through the NCrunch->Submit bug report menu), I can examine the report to see whether the configuration setting is being properly recognised.

However, I suspect that you may be using the wrong tool for this job. The configuration setting in question is actually designed for control of execution of tests on remote grid nodes. To prevent NCrunch from running specific tests, I recommend using the 'Ignore tests' buttons on the Tests Window.
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.018 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download