mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
Add dart-json & flutter-machine support to main
This commit is contained in:
parent
cc11acea10
commit
ad37e4d3c1
1 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
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 {ParseOptions, ParseTestResult} from './parsers/test-parser'
|
||||
import {getFileContent, normalizeDirPath} from './utils/file-utils'
|
||||
import {listFiles} from './utils/git'
|
||||
|
|
@ -63,10 +64,12 @@ async function main(): Promise<void> {
|
|||
|
||||
function getParser(reporter: string): ParseTestResult {
|
||||
switch (reporter) {
|
||||
case 'dart-json':
|
||||
return parseDartJson
|
||||
case 'dotnet-trx':
|
||||
throw new Error('Not implemented yet!')
|
||||
case 'flutter-machine':
|
||||
throw new Error('Not implemented yet!')
|
||||
return parseDartJson
|
||||
case 'jest-junit':
|
||||
return parseJestJunit
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue