Forum member

dylanbeattie

12 posts

Posts by dylanbeattie

  1. Can I add my own clickable file paths to the test failure output?

    Ah - that pointed me in the right direction. The linking is only triggered if there is a line of output which [b]exactly [/b]matches /^ at .*in (path):line \d+\w$/ Exactly three spaces, "at", one space followed by any number of any character, the full file path, ":line", one or more spaces, one…

  2. Can I add my own clickable file paths to the test failure output?

    Hey - that's what I thought; the first thing I tried was to Console.WriteLine the full path to a file that's part of my solution, but that doesn't turn it into a hyperlink. Here's an example where I've copied the exact same file path that's linked in the stack trace and Console.WriteLine()d it to se…

  3. Can I add my own clickable file paths to the test failure output?

    Hey. First up: NCrunch continues to be awesome and one of my absolute must-have programming tools. Yay. Thank you. My latest .NET project is an interpreter for the Rockstar programming language, and frequently when a test fails, it's because of an error in the .rock program I'm running, not an er…

  4. project.assets.json not found - and the solution doesn't override BaseIntermediateOutputPath

    I had a feeling the answer might be something like that. Don't worry about it, I'll keep playing around. I'm looking to add one very small feature, and EF Core is a very big project, so probably not worth spending the time on it. I just really miss the little coloured dots next to every line of t…

  5. project.assets.json not found - and the solution doesn't override BaseIntermediateOutputPath

    I'm trying to get NCrunch to run the tests which ship with EF Core ([url=https://github.com/dotnet/efcore]https://github.com/dotnet/efcore[/url]) I've set the TargetFramework = net8.0 custom build property for all the projects, but now every project build fails with: [quote] System.Exception:…

  6. NCrunch is ignoring TestCaseSource cases where the test case ToString() is non-unique

    Hey, Following up on this for a blog post I'm writing, in your original response you said: [quote]NCrunch should give you a warning when it detects this problem, detailing why it exists and how to work around it. [/quote] I almost certainly saw and dismissed that warning months ago, and co…

  7. NCrunch is ignoring TestCaseSource cases where the test case ToString() is non-unique

    The solution I ended up with, for anybody stumbling across this topic, is: [code=csharp] public static IEnumerable TestData() { foreach (var data in new[] { null, String.Empty }) { var testCase = new { data }; var json = JsonConvert.SerializeObject(testCase…

  8. NCrunch is ignoring TestCaseSource cases where the test case ToString() is non-unique

    Fascinating - I had no idea that GetHashCode would return different results when called across different processes; I've encountered some quirks with TestCaseFixture in NCrunch before (like test cases whose ToString() returns a multi-line string that used to confuse the UI), and figured it would be …

  9. NCrunch is ignoring TestCaseSource cases where the test case ToString() is non-unique

    Hey NCrunchers!. So... after several days of trying to work out why code that passed locally kept failing when we tried to deploy it, I've found what looks like a rather fun bug in NCrunch's test runner. We have some code that uses anonymous types to create sets of test cases, which are then JSON…

  10. GUI bug if test argument ToString methods return multiline strings

    Hello there! It looks like there's a GUI bug in NCrunch if you're using the TestCaseSource attribute and supplying test cases whose ToString() methods return multiline strings. Screenshot and sample code to reproduce is below. Thanks! Dylan [img=http://i.imgur.com/oSCWawY.png]NCrunch G…

  11. System.Security.VerificationException: Operation could destabilize the runtime

    Hi, I'm having the same problem ("System.Security.VerificationException : Operation could destabilize the runtime.") My project is building DotNetOpenAuth and ServiceStack from source, and using VS project references to include these projects in my own app and tests. I've been through all t…

  12. NCrunch Tests window is just showing as a big red X...

    Hey - any idea why my NCrunch Tests window looks like this: [img=(- BROKEN LINK -)]NCrunch Tests Window showing a big red X[/img] It's happened 2-3 times in the last few days - closing and reopening VS2010 fixes it but is there any way I can stop this happening? Thanks, -D-