feat: add reporter for salesforce apex

This commit is contained in:
Ross Reicks 2024-07-11 11:34:33 -05:00
parent 95058abb17
commit c4f7701aa1
9 changed files with 11991 additions and 5 deletions

View file

@ -21,6 +21,7 @@ import {SwiftXunitParser} from './parsers/swift-xunit/swift-xunit-parser'
import {normalizeDirPath, normalizeFilePath} from './utils/path-utils'
import {getCheckRunContext} from './utils/github-utils'
import {ApexJsonParser} from './parsers/apex-json/apex-json-parsers'
async function main(): Promise<void> {
try {
@ -243,6 +244,8 @@ class TestReporter {
return new RspecJsonParser(options)
case 'swift-xunit':
return new SwiftXunitParser(options)
case 'apex-json':
return new ApexJsonParser(options)
default:
throw new Error(`Input variable 'reporter' is set to invalid value '${reporter}'`)
}