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
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':