Forum member

jnm236

57 posts

Posts by jnm236

  1. Incorrect Coverage Metrics for single-line if-statements

    I was caught out by this too. The ability to see coverage, erring on the side of caution if necessary, seems very important to me. Marking the whole line as covered rather than waiting for all branches is not cautious from my point of view. I appreciate that it's difficult, but I don't feel safe…

  2. NCrunch seems to select the wrong target framework

    To me this is inherently expected. Are you pretty familiar with [url=https://github.com/dotnet/standard/blob/master/docs/versions.md]https://github.com/dotnet/standard/blob/master/docs/versions.md[/url]? Interactive version: http://immo.landwerth.net/netstandard-versions

  3. NCrunch seems to select the wrong target framework

    Repro was easy. Sort of looks like the netcoreapp1.1 project is now referencing the dependency project's netstandard2.0 output. [url=https://github.com/jnm2/misc-codesamples/blob/c8b016f47a442e5bb5b45efad67bbb13c5130e36/Bug%20reports/NCrunch/Wrong%20target%20framework%20chosen%2C%20obverse.zip]Wr…

  4. NCrunch seems to select the wrong target framework

    Just realized that <TargetFramework> in the thread title was eaten rather than escaped, sorry for the silly-looking title. 😛 Just tried 3.15 on the NUnit solution. Now all the netcoreapp2.0 projects are all building fine, but the netcoreapp1.1 projects [i]all[/i] stopped building with messages l…

  5. Typo "Click here to hide this warnin"

    [img]https://i.imgur.com/IwzpBIF.png[/img]

  6. NCrunch seems to select the wrong target framework

    You are awesome, by the way. Your turnaround time is always incredible. 😃

  7. NCrunch seems to select the wrong target framework

    Awesome news! I'm glad it was worth it! Please don't go to any special trouble on my account. It's a nice-to-have.

  8. NCrunch seems to select the wrong target framework

    I'm not able to get the NUnit solution to build with NCrunch. I wish I knew of a way to look into NCrunch's MSBuild logs the way I'm used to with msbuildlog.com, but I eventually pared it down to this repro: [url=https://github.com/jnm2/misc-codesamples/raw/c24354e8335b793bb36c6ee26dddef8d137d0501/B…

  9. NCrunch can't locate other projects referenced outside <ProjectReference>

    [quote]Thus the NCrunch engine is designed to make this impossible. So getting this to work in NCrunch will require a rethink. What are you trying to do? Can you make it work using just the DLLs and avoiding the project files? [/quote] It's not possible to use just the DLLs because what's bein…

  10. NCrunch can't locate other projects referenced outside <ProjectReference>

    I'm adding integration tests to SourceLink's targets packages. Everything works as you'd expect in VS and at the command line. NCrunch copies the projects in some way that breaks the relative path for <ProjectForPackageTesting> but not for <ProjectReference>: [code=xml] <ItemGroup> <P…

  11. NCrunch fails to build VSIX project (packages Roslyn analyzer)

    I know from experience that Cake build scripts will fail to build solutions with a VSIX unless you specify [b]MSBuildSettings.SetMSBuildPlatform(MSBuildPlatform.x86)[/b], so I expect something similar is at play here. It would be nice if this requirement was autodetected by NCrunch.

  12. Don't know how to fix constant "This test was not executed during a planned execution run."

    That's understandable and that'll work. Thanks for the help!

  13. Don't know how to fix constant "This test was not executed during a planned execution run."

    Oh yes! There is that. I have [assembly: Parallelizable(ParallelScope.Children)] and I very definitely like it that way. It's terribly convenient when using ReSharper and when using NUnit Console. So that makes sense. I would expect NCrunch to be fine with that, though.

  14. Don't know how to fix constant "This test was not executed during a planned execution run."

    Sent the bug report. I don't see anything obviously wrong in the processing queue log with the verbosity detailed, but then again it is huge.

  15. Don't know how to fix constant "This test was not executed during a planned execution run."

    If you were regularly getting this message on 200 tests: [quote]This test was not executed during a planned execution run. Ensure your test project is stable and does not contain issues in initialisation/teardown fixtures.[/quote] but any individual test you run succeeds, how would you go abo…

  16. Unnecessary .ncrunchproject files

    So here's the thing. Now we've moved to the new csproj. Having *.v3.ncrunchproject show up in Solution Explorer under every project, especially non-test projects, is irritating. It's one thing to see an .ncrunchproject once in a while and know that it contains crucial settings which must be sourc…

  17. Tests not discovered in net462 CPS .csproj

    Repro: [code=xml] <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net462</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" /> <PackageReference Include="MSTest.TestAdapter" Version…

  18. Tests not discovered in net462 CPS .csproj

    Yep, confirmed. Project builds fine in NCrunch until I add an empty local function. Then it gives "Beginning retry 1 in 1000ms. The process cannot access the file 'x.dll' because it is being used by another process." and eventually fails all 10 times. One time just now I saw it build successfully…

  19. Tests not discovered in net462 CPS .csproj

    Hang on, hang on... I reverted all edits to the test and NCrunch started building the project again. I have a hunch it doesn't like my local functions.

  20. Tests not discovered in net462 CPS .csproj

    Rebooted, no change. Edited a file to make it it fail to build in VS. To my surprise, it failed in NCrunch with the correct error message. So I fixed the intentional error. Then the project built in VS but not in NCrunch. NCrunch shows the same error message that it did back when the file had the…