https://github.com/robotomize/go-allure
A command line utility for converting the output of Go tests into allure reports.
https://github.com/robotomize/go-allure
allure allure-report allure-testops cli go go-test golang test testing testing-tools unit unittest
Last synced: about 1 month ago
JSON representation
A command line utility for converting the output of Go tests into allure reports.
- Host: GitHub
- URL: https://github.com/robotomize/go-allure
- Owner: robotomize
- License: apache-2.0
- Created: 2023-02-05T11:39:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T03:10:26.000Z (2 months ago)
- Last Synced: 2025-03-30T03:22:22.953Z (about 2 months ago)
- Topics: allure, allure-report, allure-testops, cli, go, go-test, golang, test, testing, testing-tools, unit, unittest
- Language: Go
- Homepage:
- Size: 18 MB
- Stars: 14
- Watchers: 2
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⚡ Go-allure
[](https://goreportcard.com/report/github.com/robotomize/go-allure)
[](https://codebeat.co/projects/github-com-robotomize-go-allure-main)
[](https://codecov.io/gh/robotomize/go-allure)
[](https://github.com/robotomize/go-allure/actions)
[](https://github.com/robotomize/go-allure/blob/main/LICENSE)A command line utility for converting the output of Go tests into [allure reports](https://github.com/allure-framework).
## Demo

## Install
### Go
```sh
go install github.com/robotomize/go-allure/cmd/golurectl@latest
```### Docker
```sh
docker pull robotomize/golurectl:latest
```## Usage
```sh
Export go test output to allure reportsUsage:
golurectl [flags]
golurectl [command]Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
version actual versionFlags:
--allure-labels string add allure custom labels to all tests: --allure-labels key:value,key:value1,key1:value
--allure-layers string add allure layers to all tests: --allure-layers UNIT,FUNCTIONAL
--allure-suite string add allure suite to all tests: --allure-suite MyFirstSuite
--allure-tags string add allure tags to all tests: --allure-tags UNIT,ACCEPTANCE
-a, --attachment-force create attachments for passed tests
-e, --forward-exit forward the origin go test exit code
-l, --forward-log output the origin go test
--gotags string pass custom build tags: --gotags integration,fixture,linux
-h, --help help for golurectl
-o, --output string output path to allure reports: -o
-s, --silent silent allure report output(JSON)
-v, --verbose verboseUse "golurectl [command] --help" for more information about a command.
```## Getting started
To quickly see how golurectl works, you can use the following guide
```shell
go install github.com/robotomize/go-allure/cmd/golurectl@latest
cd
go test -json -cover ./...|golurectl -l -e
```A more complex example with the generation of report files and attachments
```shell
go test -json -cover ./...|golurectl -l -e -s -a -o ~/Downloads/reports --allure-suite MySuite --allure-labels epic:my_epic,custom:value --allure-tags UNIT,GO-ALLURE --allure-layers UNIT
```
### Demo with reports
