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

Notification

Icon
Error

Unable to exclude .txt files from triggering tests to run
zhanedigital
#1 Posted : Tuesday, July 8, 2025 11:30:04 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/8/2025(UTC)
Posts: 1
Location: United Kingdom

Hi,

I'm currently using Verify.net for testing which outputs a file like MyTest.received.txt when it's run.

When the engine mode is set to "run all tests automatically" is there anyway to exclude "*.received.txt" from triggering the rest of the tests to run please?

I've tried setting the `Files excluded from auto build` to include `*.received.txt` - but that doesn't seem to have any effect.

Any suggestions please?

Cheers.
Remco
#2 Posted : Tuesday, July 8, 2025 11:59:22 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 991 times
Was thanked: 1331 time(s) in 1234 post(s)
Hi, thanks for posting.

The 'Run all tests automatically' engine mode is fairly indiscriminate. It will run every test in a project that passes through the build system. Because there's no reliable way to know which files contribute to the build, any changed file in a project will trigger a build.

The best option in your case may be to try using the 'Run impacted tests automatically' engine mode instead. This actually performs an IL-level comparison to detect which tests are are likely to be impacted by a given change, and is more selective in what will be automatically executed.

Another option would be to mark the tests using a custom category that you can adjust the engine mode to specifically exclude from automatic execution. Or mark the tests as Explicit so they can only be run manually.
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.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download