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
  4. Owen McDonnell closed this discussion on 27 Jun, 2019 05:28 AM.

Comments are currently closed for this discussion. You can start a new one.

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

Recent Discussions

21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 09:10 AM

 

21 Aug, 2019 05:56 AM
21 Aug, 2019 03:08 AM
20 Aug, 2019 11:33 PM
20 Aug, 2019 08:07 PM
20 Aug, 2019 05:50 PM
20 Aug, 2019 12:35 PM