1
0
Fork 0
mirror of https://github.com/dorny/test-reporter.git synced 2026-02-04 13:37:56 +01:00

Add dotnet-trx support (no annotations yet)

This commit is contained in:
Michal Dorner 2021-01-11 17:48:33 +01:00
parent 6482e393f9
commit b28f91cc2e
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
7 changed files with 247 additions and 4 deletions

View file

@ -1,7 +1,8 @@
import * as core from '@actions/core'
import * as github from '@actions/github'
import {parseJestJunit} from './parsers/jest-junit/jest-junit-parser'
import {parseDartJson} from './parsers/dart-json/dart-json-parser'
import {parseDotnetTrx} from './parsers/dotnet-trx/dotnet-trx-parser'
import {parseJestJunit} from './parsers/jest-junit/jest-junit-parser'
import {ParseOptions, ParseTestResult} from './parsers/parser-types'
import {getFileContent, normalizeDirPath} from './utils/file-utils'
import {listFiles} from './utils/git'
@ -67,7 +68,7 @@ function getParser(reporter: string): ParseTestResult {
case 'dart-json':
return parseDartJson
case 'dotnet-trx':
throw new Error('Not implemented yet!')
return parseDotnetTrx
case 'flutter-machine':
return parseDartJson
case 'jest-junit':