{"id":37226013,"url":"https://github.com/adobe/go-surefire","last_synced_at":"2026-01-15T01:51:58.633Z","repository":{"id":262976929,"uuid":"887757224","full_name":"adobe/go-surefire","owner":"adobe","description":"Surefire Result Aggregator for Golang","archived":false,"fork":false,"pushed_at":"2025-11-04T03:52:45.000Z","size":31,"stargazers_count":7,"open_issues_count":4,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-11-04T05:33:34.439Z","etag":null,"topics":["failsafe","golang","surefire","surefire-reporting"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adobe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-13T08:27:44.000Z","updated_at":"2025-04-04T03:45:27.000Z","dependencies_parsed_at":"2024-11-15T11:29:38.427Z","dependency_job_id":"ee4a52c7-b4f2-4b84-91e5-6efd0e5c6186","html_url":"https://github.com/adobe/go-surefire","commit_stats":null,"previous_names":["adobe/go-surefire"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/adobe/go-surefire","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fgo-surefire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fgo-surefire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fgo-surefire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fgo-surefire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adobe","download_url":"https://codeload.github.com/adobe/go-surefire/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fgo-surefire/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"ssl_error","status_checked_at":"2026-01-15T00:55:20.945Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["failsafe","golang","surefire","surefire-reporting"],"created_at":"2026-01-15T01:51:57.899Z","updated_at":"2026-01-15T01:51:58.612Z","avatar_url":"https://github.com/adobe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Surefire Result Parser\n\nReads Surefire Results from multiple XML files and aggregates then for further processing.\n\n## Features\nSurefire XML Test results are parsed into structs. [Data Model](doc/datamodel.md) shows \nthe data-structure surefire results is converted to.\n\n## Installation\n\n- Install Go, at least version 1.21.0\n- Run `make local-build`. This will resolve dependencies and run tests\n\n## Usage\n\nAdd module by `go get github.com/adobe/go-surefire`.\n\nRead test-result XML files from `~/test-results` directory.\n\n```\nfiles, _ := listTestReportFiles()\n\ntestResults, err := NewJUnitReportsReaderBuilder().Build().FromReportFiles(files)\n\t\nfunc listTestReportFiles() ([]string, error) {\n\tsureFireTestResult := []string{}\n\titems, err := os.ReadDir(~/test-results)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tfor _, item := range items {\n\t\tif item.Type().IsRegular() \u0026\u0026 strings.HasSuffix(item.Name(), \".xml\") {\n\t\t\tsureFireTestResult = append(sureFireTestResult, fmt.Sprintf(\"%s/%s\", path, item.Name()))\n\t\t}\n\t}\n\n\treturn sureFireTestResult, nil\n}\n```\n\nThere is also support for adding labels to results on Suite level. \n\n```\nfiles, _ := listTestReportFiles()\n\ntestResults, err := NewJUnitReportsReaderBuilder().WithLabeler(func(suite TestSuite) []string {\n\t\treturn []string{\"label\"}\n\t}).Build().FromReportFiles(files)\n```\n### Contributing\n\nContributions are welcomed! Read the [Contributing Guide](./.github/CONTRIBUTING.md) for more information.\n\n### Licensing\n\nThis project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadobe%2Fgo-surefire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadobe%2Fgo-surefire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadobe%2Fgo-surefire/lists"}