All Projects → vakenbolt → go-test-report

vakenbolt / go-test-report

Licence: Apache-2.0 license
Captures go test output and parses it into a single self-contained HTML file.

Programming Languages

go
31211 projects - #10 most used programming language
javascript
184084 projects - #8 most used programming language
Makefile
30231 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to go-test-report

allure-nunit
Archived - Allure adapter for NUnit framework.
Stars: ✭ 45 (-33.82%)
Mutual labels:  testing-tools, reporting-tool
Fastreport
Free Open Source Reporting tool for .NET6/.NET Core/.NET Framework that helps your application generate document-like reports
Stars: ✭ 1,688 (+2382.35%)
Mutual labels:  reporting, reporting-tool
CellReport
CellReport 是一个netcore实现的、以复杂统计报表为核心目标的制作、运行工具。支持数据看板、大屏制作。你可以使用数据库、excel文件、api服务、已有报表等为数据源,通过内置的集合函数组织数据,以类excel界面设计最终呈现结果。
Stars: ✭ 196 (+188.24%)
Mutual labels:  reporting, reporting-tool
Allure Docker Service
This docker container allows you to see up to date reports simply mounting your "allure-results" directory in the container (for a Single Project) or your "projects" directory (for Multiple Projects). Every time appears new results (generated for your tests), Allure Docker Service will detect those changes and it will generate a new report automatically (optional: send results / generate report through API), what you will see refreshing your browser.
Stars: ✭ 194 (+185.29%)
Mutual labels:  reporting, testing-tools
allure-docker-service-ui
Allure Docker Service UI provides a friendly user interface for frankescobar/allure-docker-service API container.
Stars: ✭ 51 (-25%)
Mutual labels:  reporting, reporting-tool
toradocu
Toradocu - automated generation of test oracles from Javadoc documentation
Stars: ✭ 39 (-42.65%)
Mutual labels:  testing-tools
Orion-Stress-Tester
A simple, efficient and accurate stress tester, support HTTP, WebSocket and TCP
Stars: ✭ 32 (-52.94%)
Mutual labels:  testing-tools
Reports.JS
Stimulsoft Reports.JS is a reporting tool for Node.js and JavaScript applications.
Stars: ✭ 33 (-51.47%)
Mutual labels:  reporting
ctest
A simple portable C test runner
Stars: ✭ 17 (-75%)
Mutual labels:  testing-tools
sarna
Security Assessment Report geNerated Automatically
Stars: ✭ 26 (-61.76%)
Mutual labels:  reporting
allure-gradle
Allure Gradle Plugin
Stars: ✭ 62 (-8.82%)
Mutual labels:  reporting
effcee
Effcee is a C++ library for stateful pattern matching of strings, inspired by LLVM's FileCheck
Stars: ✭ 76 (+11.76%)
Mutual labels:  testing-tools
detect-features
Detect and report browser and hardware features.
Stars: ✭ 63 (-7.35%)
Mutual labels:  reporting
ad-privileged-audit
Provides various Windows Server Active Directory (AD) security-focused reports.
Stars: ✭ 42 (-38.24%)
Mutual labels:  reporting-tool
tressa
Little test utility
Stars: ✭ 18 (-73.53%)
Mutual labels:  testing-tools
query2report
Query2Report is a simple open source business intelligence platform that allows users to build report/dashboard for business analytics or enterprise reporting
Stars: ✭ 43 (-36.76%)
Mutual labels:  reporting-tool
mockcpp
Two C/C++ testing tools, mockcpp and testngpp.
Stars: ✭ 40 (-41.18%)
Mutual labels:  testing-tools
CodeBaseManager
Multi-langage CLI tool to manage your code base
Stars: ✭ 11 (-83.82%)
Mutual labels:  testing-tools
client-java
Asynchronous client for Java-based agents
Stars: ✭ 17 (-75%)
Mutual labels:  testing-tools
camunda-prometheus-process-engine-plugin
Monitor your KPIs!!! Camunda BPM Process Engine Plugin providing Prometheus Monitoring, Metric classes for various BPMN use, Grafana Annotations, and HTTPServer data export: Used to generate Prometheus metrics anywhere in the Engine, including BPMN, CMN, and DMN engines and instances.
Stars: ✭ 48 (-29.41%)
Mutual labels:  reporting




license: Apache 2.0 version: 0.9.3 platforms: macos,linux,windows goreportcard

go-test-report captures go test output and parses it into a single self-contained HTML file.

Installation

Install the go binary using go get.

NOTE: To run the binary, add the bin folder from go's workspace directory to the exported PATH variable in your shell. The default workspace folder is a directory named go within your user home directory (~/go for Linux and macOS, %USERPROFILE%/go for Windows).

$ go get -u github.com/vakenbolt/go-test-report/

Usage

To use go-test-report with the default settings.

$ go test -json | go-test-report

The aforementioned command outputs an HTML file in the same location.

test_report.html

Everything needed to display the HTML file correctly is located inside of the file, providing an easy way to store and host the test results.

Understanding HTML test report

The HTML file generated by go-test-report is designed to provide an easy way to navigate test results. At the top of the page are general stats related to the test. Below is the title of the test followed by a section called "Test Groups". Tests are organized into these groups which are represented by color-coded squares. A green square indicates that all test in that group passed.




A red square indicates that at least one test in that group failed.




To view the tests in a particular test group, click on any of the test group indicators. A selected group indicator will be colored in black. The number of tests allocated per test group can be set with the groupSize command-line flag.




To view the output of a related test, click on the title of a test on the list. If you want to expand all of the test on the list, simultaneously press shift and the test group indicator.


Configuration

Additional configuration options are available via command-line flags.

Usage:
  go-test-report [flags]
  go-test-report [command]

Available Commands:
  help        Help about any command
  version     Prints the version number of go-test-report

Flags:
  -g, --groupSize int   the number of tests per test group indicator (default 20)
  -h, --help            help for go-test-report
  -o, --output string   the HTML output file (default "test_report.html")
  -s, --size string     the size (in pixels) of the clickable indicator for test result groups (default "24")
  -t, --title string    the title text shown in the test report (default "go-test-report")
  -v, --verbose         while processing, show the complete output from go test

Use "go-test-report [command] --help" for more information about a command.

The name of the default output file can be changed by using the -o or --output flag. For example, the following command will change the output to my-test-report.html.

$ go test -json | go-test-report -o my-test-report.html

To change the default title shown in the test_report.html file.

$ go test -json | go-test-report -t "My Test Report"

The default number of tests in a test group can be changed using the -g or --groupSize flag. For example, the following command will change the default number of tests in a group to 8.

$ go test -json | go-test-report -g 8

Use the -s or --size flag to change the default size of the group size indicator. For example, the following command will set both the width and height of the size of the indicator to 48 pixels.

$ go test -json | go-test-report -s 48

Additionally, both the width and height of the group size indicator can be set. For example, the following command will set the size of the indicator to a width of 32 pixels and a height of 16 pixels.

$ go test -json | go-test-report -g 32x16

Building from source

GNU make is used as the main build automation tool for go-test-report. MacOS users may need to upgrade their local make to the latest version using homebrew.

$ brew install homebrew/core/make

After the update is complete make will become gmake

To build go-test-report from source.

$ gmake genbuild

Because go-test-report embeds the HTML and Javascript code necessary to generate the report output file, a command to generate the embedded go code is needed.

$ gmake gencode

Alternatively, make genbuild can be used which automatically runs gencode before genbuild

To build the testing container (This is the same docker image used during build automation):

$gmake dockertest

To build release binaries,

$ gmake buildall

Creates a folder in the root project folder called release_builds that contains builds for the following platforms:

  • darwin/amd64 (MacOS)
  • linux/amd64
  • windows/amd64

Contributors

@afbjorklund @quarckster @vakenbolt

Contribute & Support

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].