# Passed tests doesn't show up in CircleCI insights

**URL:** <https://discuss.circleci.com/t/passed-tests-doesnt-show-up-in-circleci-insights/41493>\
**Category:** Running Tests\
**Created:** [October 10, 2021, 10:16pm UTC](https://discuss.circleci.com/t/passed-tests-doesnt-show-up-in-circleci-insights/41493 "2021-10-10T22:16:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vegesnark](https://avatars.discourse-cdn.com/v4/letter/v/d78d45/32.png) [@vegesnark](https://discuss.circleci.com/u/vegesnark)\
**Post date:** [October 10, 2021, 10:16pm UTC](https://discuss.circleci.com/t/passed-tests-doesnt-show-up-in-circleci-insights/41493/1 "2021-10-10T22:16:58Z")

</div>

Hi,  
I have a project where am running .net core tests and uploading the test results by using the trx2junit.  
The test status are being shown under ‘Tests’ tab after the build. But the problem is, passed tests are not getting shown under Insights.

For example: There is a test which got failed, am able to see failed error under tests tab and failure in Insights-\>Tests tab for that build  
But in the same build am not able to see passed tests under Insights-\>Tests. Because of which we are not able to track or see flaky tests

Below is the screenshot for the pipeline of ‘tests’ tab  
Upon clicking on ‘Insights’, it shows no passed tests results in insights

 ![image](https://global.discourse-cdn.com/circleci/original/3X/c/8/c8343e833433712cd7175f06783cd7196861603d.png)

If in case, I have any failure in test → then only that failed tests is being shown under Insights-\>Test tab.

Is is something wrong ? that showing info in tab but not in Insights ?  
Do anyone else face same issue ? or have any solution for this problem ?

---

<div class="post-metadata">

**Author:** ![thekatertot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/thekatertot/32/25169_2.png) [@thekatertot](https://discuss.circleci.com/u/thekatertot)\
**Post date:** [October 18, 2021, 5:26pm UTC](https://discuss.circleci.com/t/passed-tests-doesnt-show-up-in-circleci-insights/41493/2 "2021-10-18T17:26:29Z")

</div>

Hi @vegesnark! This is a little complicated to debug, but I don’t think you’re doing anything wrong. Would you mind sharing the link to your project?

---

<div class="post-metadata">

**Author:** ![vegesnark](https://avatars.discourse-cdn.com/v4/letter/v/d78d45/32.png) [@vegesnark](https://discuss.circleci.com/u/vegesnark)\
**Post date:** [October 25, 2021, 11:11am UTC](https://discuss.circleci.com/t/passed-tests-doesnt-show-up-in-circleci-insights/41493/3 "2021-10-25T11:11:15Z")

</div>

Hi @thekatertot ,  
Thanks for replying,  
Below is the yaml which am using, see if this helps you in understanding the setup.

```auto
version: 2.1

orbs:
  win: circleci/windows@2.2.0

workflows:
   UI_Tests:
      jobs:
         - run_UI_tests:
            executionType: smokes         

commands:
   environment_setup:
    steps:
      - checkout
      - run:
          name: Install Chrome Browser
          command: |
            choco install googlechrome --ignore-checksums
      - run:
          name: Install trx2junit tool
          environment:
            PATH: '/root/.dotnet/tools:$PATH'
          command: |
            dotnet tool install -g trx2junit

jobs:
   run_UI_tests:
      executor: win/default
      parameters:
         executionType:
          type: string
          default: ''

      steps:
         - environment_setup         
         - run:
            name: Restore nuget packages for the project
            command: |
              dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
              dotnet restore "UI.Tests\UI.Tests.csproj"    
         - run:
            name: Run UI tests
            command: |
               dotnet test "UI.Tests\UI.Tests.csproj" --filter Category=<< parameters.executionType >> --logger "trx;LogFileName=TestResults.trx" --results-directory:"test-results"
         - run: 
            name: Convert report file
            command: |
                   trx2junit ./test-results/*.trx
            when: always
         - store_test_results:
            path: test-results
         - store_artifacts:
            path: test-results        

```

---

<div class="post-metadata">

**Author:** ![bouhmid90](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/bouhmid90/32/30139_2.png) [@bouhmid90](https://discuss.circleci.com/u/bouhmid90)\
**Post date:** [May 11, 2022, 3:59pm UTC](https://discuss.circleci.com/t/passed-tests-doesnt-show-up-in-circleci-insights/41493/4 "2022-05-11T15:59:48Z")

</div>

Did you fix this issue i have the same actually

---

<div class="post-metadata">

**Author:** ![vegesnark](https://avatars.discourse-cdn.com/v4/letter/v/d78d45/32.png) [@vegesnark](https://discuss.circleci.com/u/vegesnark)\
**Post date:** [May 13, 2022, 2:11pm UTC](https://discuss.circleci.com/t/passed-tests-doesnt-show-up-in-circleci-insights/41493/5 "2022-05-13T14:11:47Z")

</div>

We found out that the problem is with a file which was generated from trx2junit. The format of failed tests in trx2junit resulted file is a bit different when compared to junit file (can be resulted by using junit logger in the test solution).

Right now we are having a test framework as xunit, so we are using xunit logger and converting the xunit result xml to junit file using ‘xunit-to-junit’ tool.

CircleCI shows us the correct information in insights when we use junit file which was resulted using ‘xunit-to-junit’ tool
