Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. Can't get FsCheck-based property tests to work with NCrunch

    [quote=larsw;8382] Tested with NCrunch 2.16.0.3[/quote] I think that this is likely to be the problem :) There have been a few fixes to Xunit v2 support since 2.16 was released. 2.17 in particular had a number of targeted fixes around Xunit2 extensions. When I test the code you've provide…

  2. Can't get FsCheck-based property tests to work with NCrunch

    Hi Lars, According to prior experience, NCrunch should work correctly with FsCheck, though you may need the [Fact] to get it to recognise the tests. It's possible that something has changed or you've found a feature that NCrunch doesn't work with. Are you able to share any sample code that can …

  3. Best method for referencing third-party assemblies

    Although these references aren't being referenced using a path, they are being resolved to your Program Files directory, possibly via an extended search path (MSBuild search logic is very complex). NCrunch has a piece of logic inside it that stops it from copying assemblies inside 'Program Files' i…

  4. Path to nuget cache?

    [quote=moswald;8374]Aha, I have it figured out. You were right, it didn't have anything to do with the nuget package itself. The build process knows about the nuget cache, and so nCrunch shouldn't need to do anything special. [i]However[/i], nCrunch doesn't automatically copy the generated .nuget…

  5. Path to nuget cache?

    Thanks! The error message I receive from this code when testing it under the latest dev version of NCrunch is as follows: System.InvalidOperationException: IExampleApi doesn't look like a Refit interface. Make sure it has at least one method with a Refit HTTP method attribute and Refit is instal…

  6. Best method for referencing third-party assemblies

    [quote=MarcChu;8370]Well, I got the code to function correctly by setting "Copy referenced assemblies to workspace" for every project in this chain (A, B, and C, but not for every project in the solution). I'm fairly certain nothing is loaded from the GAC. Also, I was in contact with tech su…

  7. Path to nuget cache?

    [quote=moswald;8368]I think so? It's definitely broken right now. :) If you want, tomorrow I can put together a sample test suite and put it on GitHub for you to take a look at.[/quote] It would be really great if you could do that. Sorry, I'm having a hard time understanding this one.

  8. Path to nuget cache?

    [quote=moswald;8366]In this case, the [url=https://github.com/paulcbetts/refit]nuget package comes with a tools subfolder[/url] with an executable inside that gets run as a pre-build step. Pre-nuget 3.0, the only way to get it working was to use the IncludeAdditionalFiles property.[/quote] Unde…

  9. Displaying paramaterised tests

    I've completed my investigation of this problem and concluded that it is, unfortunately, by design. Xunit v2 has a concept known as pre-enumeration, which basically involves the granular discovery of theory test cases during test discovery. Pre-enumeration allows NCrunch to detect theory test ca…

  10. Path to nuget cache?

    I've just revisited our solution to this issue, and realised that our solution doesn't really make sense in this context. The Additional Files To Include is designed to allow you to include files in the workspace that a relatively referenced from your code or build logic. But the Nuget package…

  11. Best method for referencing third-party assemblies

    Hi, thanks for sharing this issue. It looks to me as though something is not behaving right in NCrunch's resolution in your solution. When NCrunch constructs a workspace for your project, by default, it will copy all assemblies directly referenced by the project into an _ncrunchreferences direct…

  12. Benefits of NCrunch vs Other Test Tools

    [quote=qujck;8356]I had to disable NCrunch the other day as one of the guys I was demoing to is colour blind (NCrunch is not very colour blind friendly).[/quote] You may already know this, but I just wanted to confirm that it's possible to [url=http://www.ncrunch.net/documentation/reference_globa…

  13. Grid + local performance question

    Hi Wilhelm, When NCrunch works over a grid, it will duplicate build and analysis tasks so that each node (+ local) will build and analyse the same project. The alternative design considered was to have a single node (or local) build each project, then transfer the artifacts across the grid. T…

  14. Benefits of NCrunch vs Other Test Tools

    Hi Ed, I have a feeling that you're fishing for real-world examples of people that have investigated their tooling, rather than a pitch from a tools vendor ... So I'll sit quiet on this one. I've put out a tweet asking if any other users are interested in posting here, as I'm also interested in …

  15. Quick second build losing code coverage?

    Thanks Ed. The pending 2.20 release introduces a number of significant changes to the way that NCrunch builds and handles its code coverage indexes. Because of the sheer volume of data involved and the complexity of this area of the product, it will be very difficult for me to reproduce the prob…

  16. Test Status Changes

    Hi Ed, Something I can think could cause this behaviour is if SaveToFile test 2 causes a change to a file in the foreground solution. This would cause NCrunch to consider tests to be out of date. Is the file being saved to by these tests referencing anything using an absolute file path?

  17. NUnit generic test fixtures report "same name" error

    Hi Jamie, Thanks for sharing this issue. This is caused by a known problem in which NCrunch isn't correctly identifying tests using parameterised fixtures under NUnit v3 - [url=http://forum.ncrunch.net/yaf_postst1734_Parameterized-TestFixtures-not-fully-recognized-anymore-with-NUnit3.aspx]http:/…

  18. Path to nuget cache?

    Hi, thanks for sharing this. It looks like we'll need to add support for environment variables in the 'Additional Files To Include' for this to work. I'll see if I can get this introduced. Thanks for making me aware of it. An ugly work around would be to hard-code the path into the 'Addition…

  19. Adjust alpha of pending tests?

    [quote=kentcb;8338]Hi, I find it hard to distinguish between tests that have completed (solid) and those that have not (semi-transparent). I've found the "General Settings" and it's fantastically flexible in setting up colours and what-not. However, I can't see a way to adjust the alpha for pendi…

  20. Disable coverage without disabling test info

    [quote=kentcb;8336] I'm not sure I find the perf info useful yet. Is it measuring the DEBUG binaries? Does it warm up the JIT? [/quote] The performance tracking cannot work with compiler optimisations enabled and does not override JIT behaviour. Even considering this, you may be surprised how …