g0t4 / aspnetcore-generator-api

Sample ASP.NET Core API that generates random data, has swagger UI too
MIT License
73 stars 353 forks source link

Integration test on Team city not getting rich test information #9

Open laitang2000 opened 6 years ago

laitang2000 commented 6 years ago

I'm following your course on PS and I'm trying to get the Integration Test displaying test information.

This is my docker-compose.yml file

version: '3.1'

services:
  generator:
    image: my-registry:55000/gen:ci-${GENERATOR_BUILD_NUMBER-10}
    #ports:
    #  - "8080:80"
  mail:
    image: mailhog/mailhog
    #ports:
    #  - "8025:8025"
  integration:
    image: my-registry:55000/gen:integration-${BUILD_NUMBER-10}
    build: .
     - TEAMCITY_PROJECT_NAME: fake

I'm trying to set TEAMCITY_PROJECT_NAME to fake but team city is refusing to show rich test information from xnunit. Any suggestions?

Thanks

g0t4 commented 6 years ago

When you run docker-compose alone (outside TeamCity) do you see the TeamCity Service Messages in the output with the test results? If not, it is possible that the test runner isn't emitting test results into the format TeamCity parses.

https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ServiceMessages