NUnit test result shown only 1000 results

Kouji Matsui's Avatar

Kouji Matsui

16 Dec, 2018 02:00 AM

Hi, thanks AppVeyor nice service and contribute for OSS project.
My project has over 1000 unit test using NUnit.
AppVeyor test result shown only 1000 results, why and how to fix this problem?

We can see this problem at:
https://ci.appveyor.com/project/kekyo/il2c/builds/21031781#L557

```
Test Run Summary
  Overall result: Passed
  Test Count: 1004, Passed: 1004, Failed: 0, Warnings: 0, Inconclusive: 0, Skipped: 0
  Start time: 2018-12-15 12:01:11Z
    End time: 2018-12-15 12:10:30Z
    Duration: 558.330 seconds
```

Test results (shown only 1000) : https://ci.appveyor.com/project/kekyo/il2c/builds/21031781/tests

  1. Support Staff 1 Posted by Ilya Finkelshte... on 17 Dec, 2018 09:44 PM

    Ilya Finkelshteyn's Avatar

    Hi Kouji,

    Do you have duplicate test names by any chance? Can you add one more test with unique test name for experiment and re-run the build?

    Ilya.

  2. 2 Posted by Kouji Matsui on 18 Dec, 2018 02:57 AM

    Kouji Matsui's Avatar

    Thanks reply, I wrote a counter program for TestResult.xml and counted test results below:

    ```csharp
    var xdocument = XDocument.Load("TestResult.xml");

    var testCasesByName = xdocument.Root.DescendantsAndSelf("test-case").
          GroupBy(testCase => (string)testCase.Attribute("name")).
          ToDictionary(g => g.Key, g => g.ToArray());
    var testCasesByFullName = xdocument.Root.DescendantsAndSelf("test-case").
          GroupBy(testCase => (string)testCase.Attribute("fullname")).
          ToDictionary(g => g.Key, g => g.ToArray());

    Console.WriteLine("testCasesByName: " + testCasesByName.Count);
    Console.WriteLine("testCasesByFullName: " + testCasesByFullName.Count);
    ```

    Then:

    ```
    testCasesByName: 652 <-- count by "name"
    testCasesByFullName: 1004 <-- count by "fullName"
    ```

    These results not equals both counting.
    How counting your AppVeyor test browser?

  3. 3 Posted by Kouji Matsui on 18 Dec, 2018 03:12 AM

    Kouji Matsui's Avatar

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac