Forum member

kierenj

20 posts

Posts by kierenj

  1. Upgraded test projects to 4.7.2 - 0 tests discovered

    I started doing this, but then had a hunch. I removed all 111 binding redirects from the test project, and tests were then all discovered! I mean, it works, but I feel surprised that those redirects were doing nothing. The tests run very, very slowly (hence trying to set up a fleet of old machi…

  2. Upgraded test projects to 4.7.2 - 0 tests discovered

    Ok, that sounds good, thanks. A nice systematic approach.. I'll commit each step as I go into a repro repo.

  3. Upgraded test projects to 4.7.2 - 0 tests discovered

    I've created a fresh .NET Framework 4.7.2 unit test project, referenced NUnit 3.7.1, and the test is discovered fine (both locally and on the grid). The real project references around an additional 200 NuGet packages (lots of .NET Core stuff), as well as 16 other projects in the solution. What…

  4. Upgraded test projects to 4.7.2 - 0 tests discovered

    Yes, the assembly is analysed (by all 3 machines in the grid: local, plus the other two). It's NUnit 3.7.1.

  5. Upgraded test projects to 4.7.2 - 0 tests discovered

    Thanks, I've submitted a report with this thread URL as the name. :)

  6. Upgraded test projects to 4.7.2 - 0 tests discovered

    Hi - I have a bit of a nightmare Solution (sorry!) which has a .NET Framework 4.7.2 test project, referencing some .NET Standard libraries and packages. It was 4.6.1, working fine locally - then trying to get Grid processing set up I had some problems with reference assemblies, so tried 4.7.1 and f…

  7. XUnit - CollectionBehaviorAttribute to disable parallelism - not used?

    Hi, I have some integration tests which I don't want to be run in parallel, using xunit - I have : [assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly, DisableTestParallelization = true, MaxParallelThreads = 1)] Which works fine with most runners, but it seems that NCrunc…

  8. UI hangs for ~3 sec each time when running automatically

    Humm, just sat down over lunch to try exactly that, but of course it's not hanging for anywhere near as long now. It was very repeatable this morning, but then not so much now - frustrating. The delays seem longer when a debugger isn't attached, while I may be seeing patterns where there aren't …

  9. UI hangs for ~3 sec each time when running automatically

    Hi, I have an issue whereby as I'm changing the code for my solution (with run impacted tests automatically ticked), the Visual Studio UI will hang for around 3 seconds each time, and be unresponsive to any input. Is there something I can do to diagnose the issue? Thanks Kieren

  10. Build errors from SourceLink put NCrunch into weird state

    I have a .NET Core solution (targetting a few platforms) and tried applying SourceLink to it, by adding the following to all the csprojs: [quote] <PropertyGroup> <TargetFramework>netcoreapp2.1</TargetFramework> <!-- Optional: Declare that the Repository URL can be published to NuSpec…

  11. Build fails, but in broken state, no tests running

    That works, thanks very much for the super quick response :)

  12. Build fails, but in broken state, no tests running

    Hi thanks for the response. No unfortunately the output window (umm, the bottom pane) is blank for all of the projects in question when selected

  13. Build fails, but in broken state, no tests running

    I enabled detailed logging and found this. Not sure if it's related.. ENGINE - [12:44:26.5157-Core-26] Event [ErrorEvent:[Error: Context: (global) Category: Internal Message: An item with the same key has already been added. Details: System.ArgumentException: An item with the same key has al…

  14. Build fails, but in broken state, no tests running

    I have a solution with a .NET Core project and lots of .NET Framework projects. It's been working fine until "some point in the past couple of weeks" - no major additions, sorry I can't be more specific. I'm on latest VS 2017 (15.4.1) NCrunch tests status bar: "1 project is failing to build" …

  15. Couple of issues with solution with .NET Core project

    I'm trying to create a repro, but no luck yet. I have a unit test project referencing that nuget package, and another netstandard14 class library referenced with the reference too. I do notice that it's nCrunch.Common.CustomAssemblyResolver.ResolveAssembly which is explicitly trying to load from…

  16. Couple of issues with solution with .NET Core project

    Ok, that seemed to fix that issue. To recap: I fixed all of the above. But maybe this thread will be useful for others searching for solutions :) But I have a new issue: Similar to http://forum.ncrunch.net/yaf_postst2072_NCrunch--Core-1-0-1-and-BadImageFormatException.aspx , I get: [i…

  17. Couple of issues with solution with .NET Core project

    I now have the following, for a project which is using PostSharp, in a PostSharp aspect class. Aspects\CallerIdNeededAttribute.cs (17, 18): An unexpected exception occurred when executing user code: System.TypeInitializationException: The type initializer for 'xxx.Auth.AccessControl.AppPermis…

  18. Couple of issues with solution with .NET Core project

    Weirdly, when I changed the consuming project (for the 2nd issue) to target .NET 4.6.1, the errors went away. The first issue seemingly fixed itself too.

  19. Couple of issues with solution with .NET Core project

    Hi - first a quick note, my installation was somehow corrupted and I ended up doing a manual install. However, the "devenv /setup /novstemplates" step did not work (gave "Operation could not be completed") unless I ran with administrator privileges. It may be worth updating the documentation for V…

  20. Maximising re-use of process/AppDomain

    Hi - we're using NCrunch to run some integration tests which use an Entity Framework context which is fairly large. The startup time for EF to build the model (in-memory) is pretty slow; much slower than the time it takes our framework to restore a copy of the database in SQL Express, or check/se…