Forum member

Argamon

17 posts

Posts by Argamon

  1. Problem with latest xUnit v3 (3.2.0)

    Actually it was meant as a just hint that there is a problem with the latest version. As it was released this Sunday, I do not expect a fix asap ;) I like to keep my software up to date, but this is not the first time a NuGet package update introduces problems. We will stick to 3.1.0 for now, the…

  2. Problem with latest xUnit v3 (3.2.0)

    While upgrading to latest versions I experienced a problem with the latest xUnit v3 version. (I am using the latest NCrunch version with VS2022, if it matters) To reproduce, just create a new Console Application. add a xunit.v3 as dependency and replace the Program.cs with an example test. …

  3. Different NCrunch file naming for slnx

    With VS 2022 v17.14 the slnx format is no longer in preview. I made a quick test: [code=powershell]dotnet sln migrate[/code] When I open NCrunch I must re-enable it because the NCrunch file name is now different. Old file name (with sln) [b]Solution.v3.ncrunchsolution[/b] New file na…

  4. xunit v3 private test methods not discovered

    Wow, that was fast. I hope it wasnt more work than just some different BindingFlags. It works like charm. Thanks. I know, I am not a big fan of this design, but it has been done like this for ages in the company I work for. The problem is that there is running some kind of code analysis in the…

  5. xunit v3 private test methods not discovered

    I am currently evaluating an upgrade from xunit v2 to xunit v3. So far everything looks good, but NCrunch does not discover the tests anymore. The reason is that all our test classes are public, but our methods are private. Dont ask why, it is a coding convention where I work. With v2 NCrun…

  6. NCrunch tests fail randomly

    That is good to hear. I am looking forward to v5. I am using now NCrunch and NSubstitute for many, many years and I am quite happy how both excell at what they are designed for. With an experienced developer you never get into this, but whenever we have new rookies the advantage that NSubsitute l…

  7. NCrunch tests fail randomly

    Sadly we battle also a lot with this, but my guess is that NCrunch cannot do much about it. I spend countless hours hunting these in some of our legacy test codes. Sadly this is how NSubstitute works behind the scenes. Basically there is a static SubstitutionContext. All tests normally run par…

  8. Microsoft.AspNetCore.Mvc.Testing and finding documentation

    Omg, I am sorry for opening this up here in the forums. After trying to figure out how this works and why everything but the xml file is copied now for hours, I found out that a few levels higher in the repo someone had placed a Directory.build.props with AllowedReferenceRelatedFileExtensions, wh…

  9. Microsoft.AspNetCore.Mvc.Testing and finding documentation

    I want to write some integration tests for an AspNetCore web api. In the startup code (Program.cs) there is some code setting up swagger with documentation. [code=csharp]builder.Services .AddSwaggerGen(option => option.IncludeXmlComments(filePath));[/code] So how to get this filePath?…

  10. .NET 5 unit test projects not building

    [quote=Remco;15287]Hi, thanks for sharing this problem. It looks like NCrunch is unable to resolve the path of your ProgramFiles directory. Can you check if you have the ProgramFiles, ProgramFiles(x86) and ProgramW6432 environment variables set on your machine? These should point to the x86, …

  11. .NET 5 unit test projects not building

    I have a few .NET 5 unit tests projects where NCrunch is not building them. When I use MSBuild everything compiles fine. The error message in the NCrunch build window shows the following: [code=plain][21:11:07.8837-LocalBuildTask-21] ERROR (Internal): System.IO.IOException: The path '' could …

  12. Ignore NuGet packages

    Now as I read your solution, it looks so simple ;) Yes overriding the property not in the project file, but just before calling the task does the trick. I still hope you find a better solution to ignore packages for NCrunch in the future, but for now I am happy that I have a working setup gene…

  13. Ignore NuGet packages

    I like your idea, but I cannot get it to work. I did add this to my csproj file: [code=xml] <PropertyGroup Condition="'$(NCrunch)' == '1'"> <XmlDoc2CmdletDocCommand>echo Do nothing</XmlDoc2CmdletDocCommand> </PropertyGroup> [/code] My guess is, it is probably an order problem, …

  14. Ignore NuGet packages

    I have a library for PowerShell Cmdlets. In this project I use the NuGet package [url=https://www.nuget.org/packages/XmlDoc2CmdletDoc/]XmlDoc2CmdletDoc[/url]. Basically this adds a target to MSBuild calling a commandline tool. [code=xml] <Target Name="XmlDoc2CmdletDoc" Aft…

  15. NCrunch building csproj files not in solution?

    As we have a pretty large solution we use different Visual Studio solutions (sln files) while still having everything in one folder. For some reason NCrunch still decides to build the csproj files not contained in the solution. This makes the test output window quite hard to read, cause it get…

  16. Gridnode "Pool"

    We use currently NCrunch with a lot of tests in our large solution. To free the local machines resources we set up 3 gridnode servers. This works fine but we expected a slightly different behavior. We distribute the NCrunch settings via our repository. So every team member has all 3 gridnodes…

  17. "Unable to write to file while transferring snapshot to node: some-nuget-package-dll"

    Maybe it is just a visual glitch, but in the summary of the error list it shows: [i]Unable to write to file while transferring snapshot to node: C:\TFS\Snapshots\.nuget\AutoFixture.Idioms\4.5.0\lib\net452\AutoFixture.Idioms.dll[/i] If I click on it and read the error message it shows (I marked…