Skip to content

Commit

Permalink
register parser and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamus Taylor authored and Jozef Izso committed May 17, 2025
1 parent 7745ff0 commit 34f1c56
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This [Github Action](https://github.com/features/actions) displays test results
- .NET / [dotnet test](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-test#examples) ( [xUnit](https://xunit.net/) / [NUnit](https://nunit.org/) / [MSTest](https://github.com/Microsoft/testfx-docs) )
- Dart / [test](https://pub.dev/packages/test)
- Flutter / [test](https://pub.dev/packages/test)
- Go / [go test](https://pkg.go.dev/testing)
- Java / [JUnit](https://junit.org/)
- JavaScript / [JEST](https://jestjs.io/) / [Mocha](https://mochajs.org/)
- Swift / xUnit
Expand Down Expand Up @@ -140,6 +141,7 @@ jobs:
# dotnet-nunit
# dotnet-trx
# flutter-json
# golang-json
# java-junit
# jest-junit
# mocha-json
Expand Down Expand Up @@ -278,6 +280,13 @@ For more information see:

</details>

<details>
<summary>golang-json</summary>

You must use the `-json` flag and output the results to a file (ex: `go test -json > testresults.json`)

</details>

<details>
<summary>java-junit (Experimental)</summary>

Expand Down
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {getReport} from './report/get-report'
import {DartJsonParser} from './parsers/dart-json/dart-json-parser'
import {DotnetNunitParser} from './parsers/dotnet-nunit/dotnet-nunit-parser'
import {DotnetTrxParser} from './parsers/dotnet-trx/dotnet-trx-parser'
import {GolangJsonParser} from './parsers/golang-json/golang-json-parser'
import {JavaJunitParser} from './parsers/java-junit/java-junit-parser'
import {JestJunitParser} from './parsers/jest-junit/jest-junit-parser'
import {MochaJsonParser} from './parsers/mocha-json/mocha-json-parser'
Expand Down Expand Up @@ -248,6 +249,8 @@ class TestReporter {
return new DotnetNunitParser(options)
case 'dotnet-trx':
return new DotnetTrxParser(options)
case 'golang-json':
return new GolangJsonParser(options)
case 'flutter-json':
return new DartJsonParser(options, 'flutter')
case 'java-junit':
Expand Down

0 comments on commit 34f1c56

Please sign in to comment.