Projekt

Obecné

Profil

« Předchozí | Další » 

Revize d519938c

Přidáno uživatelem Milan Hotovec před téměř 4 roky(ů)

Junit test report added
@testWindows

Zobrazit rozdíly:

.gitlab-ci.yml
73 73
      - $CI_COMMIT_MESSAGE =~ /merge branch/i                   #auto trigger for merge requests from command
74 74
      - $CI_COMMIT_MESSAGE =~ /Merge remote-tracking branch/i   #auto trigger for remote merge requests from command
75 75
  script:
76
    - 'dotnet test --collect:"XPlat Code Coverage" -r "./TestResults/"'    #Run tests using console mode of MSTest (Unit)¨
76
    - 'dotnet test --collect:"XPlat Code Coverage" -r "./TestResults/" --test-adapter-path:. --logger:"junit;MethodFormat=Class;FailureBodyFormat=Verbose"'    #Run tests using console mode of MSTest (Unit)¨
77 77
    - 'reportgenerator "-reports:.\TestResults\*\coverage.cobertura.xml" "-targetdir:coveragereport" -reporttypes:Html'
78 78
    - '(Get-Content .\coveragereport\index.html) -match "Line coverage:"'
79 79
  artifacts:
80 80
    expire_in: 2 days
81 81
    paths:
82 82
      - './coveragereport'
83
    reports:
84
      junit: 
85
       - ./TestResults/TestResults.xml
86

  
83 87
#Job for testing linux
84 88
test_job_linux:
85 89
  stage: test

Také k dispozici: Unified diff