Comments (3)
Getting both the outputs is possible via gotestsum! We should either support their JUnit format or get the raw JSON events and create annotations from them.
from cirrus-ci-annotations.
It seems that neither of these solutions produce file names and line numbers needed to create the GitHub Annotation object.
I've looked into https://github.com/jstemmer/go-junit-report and it also somewhat misses the point of generating machine-readable test results:
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite tests="10" failures="1" time="0.061" name="github.com/cirruslabs/cirrus-ci-annotations/parsers">
<properties>
<property name="go.version" value="go1.15"></property>
</properties>
<testcase classname="parsers" name="Test_AndroidLint_Multiple_Locations" time="0.000"></testcase>
<testcase classname="parsers" name="Test_AndroidLint_Multiple_Issues" time="0.000"></testcase>
<testcase classname="parsers" name="Test_AndroidLint_Ignored_Issue" time="0.000"></testcase>
<testcase classname="parsers" name="TestDummy" time="0.000">
<failure message="Failed" type=""> dummy_test.go:6: this test
 dummy_test.go:7: is designed to fail</failure>
</testcase>
<testcase classname="parsers" name="Test_GoLangCI" time="0.000"></testcase>
<testcase classname="parsers" name="Test_JunitJava" time="0.000"></testcase>
<testcase classname="parsers" name="Test_JunitKotlin" time="0.000"></testcase>
<testcase classname="parsers" name="Test_PythonXMLRunner" time="0.000"></testcase>
<testcase classname="parsers" name="Test_RSpec_MultipleStates" time="0.000"></testcase>
<testcase classname="parsers" name="Test_RuboCop_DocsExample" time="0.000"></testcase>
</testsuite>
</testsuites>
Perhaps my assumption is wrong and you can still generate annotations with this? Or we need to dig deeper and parse the actual test output (perhaps as a part of gotestsum's codebase)?
from cirrus-ci-annotations.
Doesn't seem it's there
Quite ridiculous
from cirrus-ci-annotations.
Related Issues (18)
- Support Python UnitTest Results HOT 2
- Support RSpec HOT 11
- Support RuboCop HOT 4
- Support remark
- Move code to Agent repository HOT 3
- Support go-junit-report
- Duplicates from matrix HOT 2
- Output cops in RuboCop annotations HOT 2
- Support XCLogParser output
- Support JetBrains Qodana
- Support Flutter test report HOT 3
- Parse error messages for Flutter reports HOT 1
- Introduce Cirrus annotation format
- Please, add support for `eslint` annotations
- Support Golang Vet HOT 2
- Support TAP format
- Support annotations for jest reports
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cirrus-ci-annotations.