Forum member
Regenhardt
20 posts
Posts by Regenhardt
-
System.Exception: Framework already initialised
So once again one of our test projects behaves weird. Test project is net472 Project under test is net462 Everything builds fine. Processing queue says analysis works fine too. The error comes on the actual tests being run, displayed in the log window in the processing queue. What do I …
22 Feb 2021 10:57 UTC
-
Test project not recognized as tests
I tried it using the standard Test Explorer and it didn't run the tests either, marked them as ignored. Not sure how to get logs there, but I assume it's the same problem, so probably not an NCrunch problem. Although there is now a definite gap in both test tools: No feedback when something goes wro…
13 Jan 2021 07:09 UTC
-
Test project not recognized as tests
Oh wow I found it. So the first step that brought me there was the log: It said it couldn't load nunit from a directory like C:\[...]\.NETFramework\4.7.2\Assemblies or something. So first I downgraded my test project to net462 to match the tested project. This was not the fix, but the log also had…
12 Jan 2021 07:16 UTC
-
Test project not recognized as tests
Unfortunately I can't reproduce it in an MCVE, and can't show others our actual codebase. You have given me a lead though, I'll try something tomorrow and report back my findings.
11 Jan 2021 17:36 UTC
-
Test project not recognized as tests
Unfortunately not. I activated it, reset the ncrunch engine, and the processing queue still has this way down in the log: [code] Process 21500: 11:16:12.576 [6] - Loading tests into NUnit3 Process 21500: 11:16:12.7395 [6] - Exploring tests using NUnit3 Process 21500: 11:16:12.7934 [6] - <t…
08 Jan 2021 10:18 UTC
-
Test project not recognized as tests
The project under test is an asp.net webapi project, net462 currently. Both the tested and the test projects have the exact same reference to System.Net.Http: [code] <Reference Include="System.Net.Http, Version=4.1.1.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitectur…
06 Jan 2021 10:52 UTC
-
Test project not recognized as tests
Happy new year! I set log verbosity to detailed and looked at the processing queue window, it does say something about loading tests into NUnit3, not sure what the stuff after that means exactly though. Turns out the log exceeds the limit of 32767 characters, so I put it into a gist: https://…
05 Jan 2021 17:10 UTC
-
Test project not recognized as tests
Thanks for the swift answer! - Can't find anything fitting my problem on the linked docs - All test categories are displayed in the tests window (passed, failed, unexecuted, ignored) - NUnit V3+ is enabled - Engine mode is set to 'Run all tests automatically' - 'Show coverage for tests' is se…
28 Dec 2020 13:36 UTC
-
Test project not recognized as tests
Hi, hope you all have nice holidays, I'm having a weird problem: NCrunch (4.6.0.3, in VS 2019) doesn't recognize tests in a specific project. There are several test project in this solution, and for some reason this one project doesn't run. In the code, the side indicators say "No covering tes…
28 Dec 2020 10:01 UTC
-
Best way to publish Coverage results with Jenkins CI
[quote=Remco;12612][quote=jonas;12609]@Remco is this something you are actively looking into adding? It would be very useful to have code coverage in another format. [/quote] Hi. Perhaps we might be able to implement this in the long term, but being totally honest with you, I don't see this appe…
07 Dec 2020 06:42 UTC
-
Console Tool: How to run only certain projects?
Alright this works like charm, thank you :) Bonus question: If I remove the -NCrunchCacheStoragePath, it returns `0 OK` with the same engine mode instead of TestsNotRun. Any idea why?
30 Jun 2020 11:56 UTC
-
Console Tool: How to run only certain projects?
[quote=Remco;14825]NCrunch will return the TestsNotRun result if there are tests stored in the model that have an unexecuted status (i.e. their result is out of date or there is no execution history for a discovered test). Most likely the reason for this is because you have impacted tests that are …
29 Jun 2020 14:09 UTC
-
Console Tool: How to run only certain projects?
Actually I found something that might help explain this: I typed my call by hand, so I forgot to add the -NCrunchCacheStoragePath C:\temp\nrunchcache from my actual script! When I execute the call without setting -NCrunchCacheStoragePath, it runs and I get test result "OK". As soon as I add "-NC…
26 Jun 2020 06:03 UTC
-
Console Tool: How to run only certain projects?
So finally got around to do this (and get a new license). We're now on 4.3, and although all run tests are green, the result in the end is TestsNotRun. The call goes ncurnch.exe {solution} /E "OnlyUnitTests" /TeamCityDisableTestNotRunFailureReporting.
26 Jun 2020 05:43 UTC
-
Console Tool: How to run only certain projects?
So I finally got the time to finish this. Many green unit tests. CI-Job runs unit tests and doesn't run other tests. For some reason though, it now reports result 5 (Some tests not run) in the end, despite having the argument /TeamCityDisableTestNotRunFailureReporting in the call. Any idea why? …
29 Jan 2020 14:48 UTC
-
Console Tool BuildFailure says Framework472 isn't installed
Wow that was indeed the problem, thank you! It seems we installed net461 after net472, and that overwrote the registry entry, therefore telling ncrunch we had an older version, but still letting msbuild properly compile because it seemingly looks for something else :D
06 Jan 2020 15:46 UTC
-
Console Tool BuildFailure says Framework472 isn't installed
Hi, I'm trying to get a reliable build job with NCrunch, and right now the build fails for certain projects. It only fails for test-projects using net472, and only on the server. Non-test projects on net472 are built without problems. But on the test projects the build output looks like this: …
06 Jan 2020 10:32 UTC
-
Console Tool: How to run only certain projects?
Thanks a lot, exactly what I needed :D
03 May 2019 09:21 UTC
-
Console Tool: How to run only certain projects?
[quote=michaelkroes;13339]Hi thanks for posting! The easiest way to do this is via an engine mode. What I find easiest is to create the engine mode for the solution. This can be done via the menu NCrunch->Set Engine Mode->Customise Engine Modes. You can create a new engine mode there. This engine…
11 Apr 2019 13:43 UTC
-
Console Tool: How to run only certain projects?
Hello, we have test projects with *.Unit.Tests and those with *.Integration.Tests, and want to run only unit tests in some cases. (No integration tests for standard feature branch pushes). How can I tell the console tool to just run *.Unit.Tests.csproj Projects? I don't really find that in the …
05 Apr 2019 06:43 UTC