Forum member
Remco NCrunch Developer
7611 posts
Posts by Remco
-
error CS0103: the name '' does not exist in the current context
Hi James, No easy way unfortunately, but usually the structure of debug metadata is defined by the method it's in. For example, methods using yield or async tend to require special handling for their metadata. Copy/pasting the method into an empty solution and knocking out much of its source co…
11 May 2016 12:02 UTC
-
Including log4net Logging in Test output
Hi, thanks for sharing this issue. NCrunch itself has no knowledge of Log4net or any of its configuration - as far as the test runner is concerned, it's just code to be run. From what I remember about log4net, it has a rather involved configuration system. Is it possible that the log4net conf…
11 May 2016 10:25 UTC
-
error CS0103: the name '' does not exist in the current context
Thanks for sharing this issue. When NCrunch manipulates the assembly built from your project, it needs to reconstruct the assembly's PDB file. Because MS are constantly updating the compiler and adding new debug metadata, NCrunch is sometimes left behind without knowledge of new metadata element…
11 May 2016 10:22 UTC
-
Ensuring serial execution across grid nodes
Hi Sam, At the moment, there is no facility in NCrunch that can coordinate concurrent access to a resource across the grid (i.e. distributed mutex). The infrastructure to allow this just isn't there yet - we'd need a controller node that can centrally coordinate the individual nodes. Early desi…
10 May 2016 23:47 UTC
-
Sometimes NCrunch discovers no tests in a test project
[quote=FrankShearar;8719]We do have some relatively complex TestCaseSource implementations, but they're not expensive: there's no database/network accessing stuff, just creating complicated domain objects. Is it possible to hook into NCrunch's diagnostic output? I could add some instrumentation t…
10 May 2016 23:34 UTC
-
NCrunch support for specflow feature files in non english language
Hi Arjan, I haven't tested this with NCrunch myself, but if my understanding is correct, there shouldn't be anything in NCrunch that would stop this from working. The integration with SpecFlow works via xunit/NUnit/MSTest. Basically, Specflow generates backing source files that can then be ru…
06 May 2016 11:58 UTC
-
Embedded resources in a shared project lose their folder hierarchy when built by NCrunch
Hi Nick, Thanks for sharing this issue, it was a good find. Apparently MS recently introduced changes to the build targets used to prepare a project prior to its build. These changes included the introduction of a target responsible for assigning a default value to the 'Link' metadata item on…
06 May 2016 02:56 UTC
-
Test projects not able to be analysed for tests
Hi Henry, Sorry for having completely misunderstood this problem. I thought that you were experiencing it on startup with a module load failure, but taking another look, this looks like it may actually be an NUnit version clash. NCrunch ships with NUnit 2.6.3. It's possible that FsCheck is u…
04 May 2016 22:20 UTC
-
Sometimes NCrunch discovers no tests in a test project
[quote=FrankShearar;8707]I've seen it happen a few times since the report, but unfortunately haven't caught it in the act with diagnostics yet. It does seem to happen most frequently during reloading as a result of a git checkout.[/quote] You mentioned that you are using TestCaseSource, are you u…
30 Apr 2016 07:27 UTC
-
NCrunch console tool duplicating tests?
[quote=Phonesis;8704] Looked into it more and it's possibly an issue with the way NCrunch handles SpecFlow BDD style scenarios. It appears to count the feature as a test in the HTML test output even though that isn't a test in and of itself. Ideally, it should just be counting the scenario titles a…
29 Apr 2016 09:10 UTC
-
NCrunch console tool duplicating tests?
Hi, thanks for sharing this issue. Does the run log itself show these tests being actually executed multiple times? It's possible for a test to be queued multiple times, but it shouldn't be possible for it to be run more than once in an end-to-end run by the console tool. If the tests are bei…
28 Apr 2016 20:04 UTC
-
Re-running failed tests via NCrunch grid and TeamCity
[quote=Phonesis;8698] No issues appear to be flagged in the CI build log. The console tool exits with an OK status. If I discover anything more about when this occurs I'll let you know. [/quote] Thanks. If you can find any steps to reproduce this or manage to get an exception somewhere, please …
28 Apr 2016 20:00 UTC
-
Managing Grid Node Disk Space
[quote=stevewilliams;8697]Thanks for that. I just want to make sure that it's cleaning up as much as possible after itself. Are there any settings to control retention periods, or is the default to just clean up all of the time?[/quote] Once a workspace is created, it is retained for the duratio…
28 Apr 2016 19:59 UTC
-
Re-running failed tests via NCrunch grid and TeamCity
[quote=Phonesis;8693] We do get the HTML report still. It just shows all tests as Not Run. None are flagged as having failed. It usually does work though. Does sound like it's failing to find the cache file for some reason. [/quote] My suspicion is that something might be wrong with the cache fi…
28 Apr 2016 11:16 UTC
-
Managing Grid Node Disk Space
Hi, thanks for posting. NCrunch creates workspaces as it needs them. This means that the number of workspaces created by the tool can only be controlled indirectly by configuration. The most significant setting in doing this is the 'Max number of processing threads' setting. When the engine …
28 Apr 2016 11:14 UTC
-
Sometimes NCrunch discovers no tests in a test project
[quote=FrankShearar;8691]There are no errors: it just doesn't find any tests in the affected project. I am using distributed processing, with NUnit, and am using TestCaseSource.[/quote] Try the following: When you start your NCrunch session, go to your configuration and set your 'Log Verbosity…
28 Apr 2016 01:45 UTC
-
Sometimes NCrunch discovers no tests in a test project
Hi, thanks for sharing this issue. When the analysis fails, how does NCrunch behave for you? Do you receive an error of some kind? Or do all your tests just suddenly disappear? Are you using distributed processing? Which test framework are you using? Are you making use of any complex c…
27 Apr 2016 23:23 UTC
-
NUnit duplicate name warning without duplicate names
[quote=ssg;8688] Thanks Remco. My diagnosis is: I received the error while I was writing the test (copying pasting lines) so when I coped the same TestCase line I got the error. Then I corrected the data but the error did not disappear. That should be trivial to reproduce right? [/quote] Got …
27 Apr 2016 23:21 UTC
-
NUnit duplicate name warning without duplicate names
[quote=ssg;8685] EDIT: interesting "Resynchronize, Rebuild" made this issue go away. I expected it to go away by itself.[/quote] Thanks for sharing this issue. Using the code sample you've provided, I haven't been able to reproduce it. If you can get this to happen again, would you mind submit…
27 Apr 2016 23:14 UTC
-
Re-running failed tests via NCrunch grid and TeamCity
[quote=Phonesis;8681] Just seems to often fail to pick up the failures and completes without running anything. Any ideas what might cause this? [/quote] The only reason I could think of behind this being intermittent would be if NCrunch wasn't able to load from the cache file, in which case all …
27 Apr 2016 12:22 UTC