Forum member

ssg

11 posts

Posts by ssg

  1. NUnit duplicate name warning without duplicate names

    [quote=Remco;8781] Now NCrunch runs your discovery step. When the discovery step has finished, suddenly, ALL the code coverage data collected from TestCase1 is now assigned to TestCase0. [/quote] This makes sense. I didn't think about code coverage. Thanks for the explanation!

  2. NUnit duplicate name warning without duplicate names

    To circumvent this issue, we started using [code=csharp]TestCaseData[][/code] instead of [code=csharp]object[][/code]. TestCaseData instances can be given individual names easily with its fluent syntax: [code=csharp] private static TestCaseData[] testData = new [] { new TestCaseData(item1,…

  3. NUnit duplicate name warning without duplicate names

    [quote=Remco;8686] Thanks for sharing this issue. Using the code sample you've provided, I haven't been able to reproduce it. If you can get this to happen again, would you mind submitting a bug report? [/quote] Thanks Remco. My diagnosis is: I received the error while I was writing the test …

  4. NUnit duplicate name warning without duplicate names

    Now with the latest version of NCrunch (2.22.0.1) I'm getting the duplicate warning for this test for NUnit 3: [code=csharp] [Test] [TestCase(10, 1, 1, 0)] [TestCase(10, 2, 1, 1)] [TestCase(10, 10, 1, 9)] public void SomeTest(int a, int b, int c, int d) …

  5. NUnit duplicate name warning without duplicate names

    Adding "ToString()" implementation to FnvTestVector class fixed the naming issue. No need to use SetName or anything else. I pushed the latest changes to the repository.

  6. NUnit duplicate name warning without duplicate names

    In NCrunch 2.20.04 I'm receiving the warning below for the member-driven tests. The source code can be reached at https://github.com/ssg/HashDepot I had been using xUnit.Net and switched to NUnit, then encountered this problem. So I don't know if it has always been there. [quote]This project con…

  7. NUnit duplicate name warning without duplicate names

    [quote=Remco;8284]This is also true, although there may be less we can do about that :([/quote] shoot! although many classes only implement Equals/GetHashCode() instead of ToString() so using GetHashCode() might be a much better idea. anyway before you wrote the answer i had written a POC, in …

  8. NUnit duplicate name warning without duplicate names

    And also because the duplicate test check uses `ToString()`, any parameter objects that don't have ToString() implementation shows up the object type instead and cause the same problem even without any strings.

  9. NUnit duplicate name warning without duplicate names

    Thanks Remco! Our tests exercise length boundaries so they have to be long. I'm currently just changing the prefixes but that's not always available for all tests (and hurts readability too). About when should we expect a fix to be released? This is currently the biggest issue about our switch from …

  10. NUnit duplicate name warning without duplicate names

    This test below gives the false positive of duplicate name warning (although parameters are different): [code=csharp] [Test] [TestCase("1234567890 1234567890 1234567890 1234567890 AA", "1234567890")] [TestCase("1234567890 1234567890 1234567890 1234567890 BB", "123456789…

  11. "Undo" isn't regarded as a change?

    NCrunch doesn't re-run tests that are impacted by "undo" operations when "automatically run impacted tests only" mode is selected. I encountered this only once but I'll add more info here if I bump into it again and get a repro. Now I'm in the middle of coding I just didn't want to forget about tell…