Forum member
Grendil
54 posts
Posts by Grendil
-
Not showing Ignored NUnit tests
[quote=Remco;7436] I realise the limitations of this as it is useful to be able to know if there are ignored tests in the codebase. [/quote] This is exactly our problem. We run our tests with NCrunch on dev machines but with other runners in the build pipeline. So we want to standardize on the N…
20 Dec 2018 15:29 UTC
-
why "unable to run concurrently" warning?
Thanks for the reply, Remco. Indeed it was my goof, I mentally juxtaposed the effective value vs selected value columns when reading the config screen. Too long a day! Thanks again.
19 Sep 2018 16:22 UTC
-
why "unable to run concurrently" warning?
I'm getting this warning: [quote]This component contains unignored tests with a long running time and the engine is unable to run them concurrently with faster tests because either the maximum number of execution threads is set to 1, or parallel execution for this solution has been disabled. The…
19 Sep 2018 04:17 UTC
-
Seeing full test output for multi-line formatted failure messages
Thanks Michael. I appreciate you looking into it and I see what you mean about pinning, it does bring focus to that line as you say. My confusion was because, if the Tests window was already open, pinning a test doesn't also bring focus to the Tests window itself. So when using pinning as a wo…
04 Sep 2018 22:33 UTC
-
Seeing full test output for multi-line formatted failure messages
Some of our tests have verbose assertion failure output (formatted by Shouldly) that goes for more than 4 lines. When I hover over the red X, I see the error format represented in one line, but it's too wide to be readable. If I click on the X, I see the exception details including only the first …
04 Sep 2018 03:58 UTC
-
Trend Antivirus Exclusion rules for NCrunch
Our company recently adopted Trend for antivirus, and we're noticing a lot of performance issues on developer machines. Among other causes, we suspect that Trend and NCrunch aren't getting along well. Can anyone recommend some good exclusion rules to help the antivirus leave NCrunch alone? Wi…
15 Aug 2018 02:01 UTC
-
Ignore projects on NCrunch config settings
We've got a large subset of test projects that I'd normally like to toggle off such that they don't cause any build/analysis overhead for NCrunch. Is there a way to drive the "Ignore this component completely" setting by engine mode? Or some other way to set up a high level toggle? I've already…
19 Apr 2018 22:09 UTC
-
NCrunch Console hanging under TeamCity (possible cause)
We've had issues with NCrunch console hanging during test runs. We're running it through a TeamCity server. It always seem to hang toward the very end of the test run, and we then have to tell TeamCity to terminate the job or else it continues indefinitely. These are long SpecFlow+Selenium web ap…
26 Sep 2017 18:31 UTC
-
NCrunch test duration not reporting correctly to TeamCity
I believe this is a bug report: NCrunch console, when TeamCity is detected, outputs TestFinished messages that TeamCity picks up for test reporting. (Great feature!) These include a Duration attribute which is needed because otherwise TeamCity reports durations incorrectly under NCrunch's paralle…
20 Sep 2017 21:21 UTC
-
NUnit3 Retry attribute
Great, that's just the feedback I was looking for, thanks. I think we'll give it a try.
15 Sep 2017 16:43 UTC
-
NUnit3 Retry attribute
We're looking at using NUnit3's Retry attribute to retry some flaky specflow tests. I'm wondering how this will work with NCrunch (including the console version) and if there is any better way to get NCrunch to retry flaky tests. Also, we may have to write a custom NUnit Retry attribute to exp…
14 Sep 2017 17:12 UTC
-
Disable auto restoring nuget packages
[quote=Remco;10517]The console tool is programmed to always run "msbuild /t:Restore" for each project at load time. This is because the newer MS CLS project system and .NET Core projects require 'restore' to be run to initialise the project.assets.json file inside the /obj directory for each projec…
11 Sep 2017 23:43 UTC
-
NCrunch Console running all tests in sln when given a child csproj arg
[quote=Remco;11049][quote=Grendil;11046] What is the easiest way to have the command line target just one project itself and not its dependent brethren? We're trying to set up a build server to run separate jobs for different test projects, even if they have some mudball relations between them.[/q…
24 Aug 2017 04:47 UTC
-
Console Tool TestFilter Issues
Ah, quite right, sorry. I had tried different attributes, but I must have flubbed all of them. It's working now with IsInProjectWithName, thanks.
24 Aug 2017 04:44 UTC
-
Console Tool TestFilter Issues
[quote=Remco;11042]I've just tried this with v3.11.0.5 (which should be the same as 3.10 in this area) using the following command: ..\consoletest\ncrunch.exe classlibrary1.sln -TestsToExecuteAutomatically "(DoesNotHaveCategory 'Integration' AND DoesNotHaveCategory 'Smoke')" And it seemed to w…
24 Aug 2017 00:03 UTC
-
NCrunch Console running all tests in sln when given a child csproj arg
[quote=Remco;11044]NCrunch itself doesn't contain any logic to automatically find and load a parent solution for a targeted project. When you run the console tool against a .proj file, NCrunch will create a virtual solution internally using default settings and will load the targeted project into m…
23 Aug 2017 23:53 UTC
-
Console Tool TestFilter Issues
[quote=Remco;10969]A more reliable way to do this would be to just inject it on the command line, as such: ncrunch.exe -TestsToExecuteAutomatically "(DoesNotHaveCategory 'Integration' AND DoesNotHaveCategory 'Smoke')"[/quote] I am trying to use this command line switch but I'm getting an error r…
23 Aug 2017 22:46 UTC
-
NCrunch Console running all tests in sln when given a child csproj arg
My understanding had been that passing a csproj file as the target argument to NCrunch console exe would tell NCrunch to only run tests in that project. I believe I've seen this behavior work as expected too, however very recently I'm seeing it instead target the entire solution. Is this because …
23 Aug 2017 21:01 UTC
-
Detecting Impacted tests
My team is trying to understand the difference between "run automatically" and "run when impacted"? I've found hints in the docs, but as yet nothing clearly definitive. When would NCrunch see fit to run a test "automatically" different than when it was "impacted"? We'd like to make conservative u…
14 Aug 2017 02:57 UTC
-
Console pauses indefinitely during run
We have been trying out the console runner against a grid of 8 test runners. We frequently find that the console output pauses somewhere along the way, and at that point there appears to be no activity on the grid nodes or the local machine. If we do nothing, nothing further happens for at least 3…
09 Aug 2017 19:15 UTC