Skip to content

Commit 34f1c56

Browse files
Shamus03jozefizso
authored andcommitted
register parser and update readme
1 parent 7745ff0 commit 34f1c56

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This [Github Action](https://github.com/features/actions) displays test results
1616
- .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) )
1717
- Dart / [test](https://pub.dev/packages/test)
1818
- Flutter / [test](https://pub.dev/packages/test)
19+
- Go / [go test](https://pkg.go.dev/testing)
1920
- Java / [JUnit](https://junit.org/)
2021
- JavaScript / [JEST](https://jestjs.io/) / [Mocha](https://mochajs.org/)
2122
- Swift / xUnit
@@ -140,6 +141,7 @@ jobs:
140141
# dotnet-nunit
141142
# dotnet-trx
142143
# flutter-json
144+
# golang-json
143145
# java-junit
144146
# jest-junit
145147
# mocha-json
@@ -278,6 +280,13 @@ For more information see:
278280

279281
</details>
280282

283+
<details>
284+
<summary>golang-json</summary>
285+
286+
You must use the `-json` flag and output the results to a file (ex: `go test -json > testresults.json`)
287+
288+
</details>
289+
281290
<details>
282291
<summary>java-junit (Experimental)</summary>
283292

src/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {getReport} from './report/get-report'
1313
import {DartJsonParser} from './parsers/dart-json/dart-json-parser'
1414
import {DotnetNunitParser} from './parsers/dotnet-nunit/dotnet-nunit-parser'
1515
import {DotnetTrxParser} from './parsers/dotnet-trx/dotnet-trx-parser'
16+
import {GolangJsonParser} from './parsers/golang-json/golang-json-parser'
1617
import {JavaJunitParser} from './parsers/java-junit/java-junit-parser'
1718
import {JestJunitParser} from './parsers/jest-junit/jest-junit-parser'
1819
import {MochaJsonParser} from './parsers/mocha-json/mocha-json-parser'
@@ -248,6 +249,8 @@ class TestReporter {
248249
return new DotnetNunitParser(options)
249250
case 'dotnet-trx':
250251
return new DotnetTrxParser(options)
252+
case 'golang-json':
253+
return new GolangJsonParser(options)
251254
case 'flutter-json':
252255
return new DartJsonParser(options, 'flutter')
253256
case 'java-junit':

0 commit comments

Comments
 (0)