Skip to content
forked from medyagh/gopogh

generate pretty html out of golang's test logs

License

Notifications You must be signed in to change notification settings

spowelljr/gopogh

This branch is 26 commits behind medyagh/gopogh:master.

Folders and files

NameName
Last commit message
Last commit date
May 7, 2024
Aug 16, 2024
Aug 11, 2023
Nov 4, 2023
Jan 10, 2020
Oct 3, 2024
Jun 21, 2023
Dec 18, 2019
Dec 1, 2023
Nov 28, 2023
May 18, 2021
Dec 6, 2023
Dec 6, 2023
Apr 4, 2023
Dec 6, 2023
May 31, 2023
Apr 17, 2023
Apr 17, 2023
Sep 20, 2024
Sep 20, 2024
Jul 21, 2020
May 16, 2020

Repository files navigation

Gopogh

Github All Releases

Converts golang test results from json to user-friendly html.

Example test logs: before, after

GIF Demo

Without gopogh

Demo without gopogh

With gopogh

Demo with gopogh

Features:

  • foldable test results.
  • open each subtest result in a new window.
  • sort test by passed/failed/skipped.
  • sort test by execution duration.
  • search in each test result separately.
  • summary table
  • generate json summary

Give it a try

  • first install gopogh
        go install github.com/medyagh/gopogh/cmd/gopogh@latest
  • run your integration test and convert it to json
        go tool test2json -t < ./your-test-logs.txt > ./your-test-log.json
  • run gopogh on it
TEST_PR_NUMBER=1313
TEST_NAME="KVM Linux"
GITHUB_REPOSITORY="github.com/kubernetes/minikube/"
GITHUB_SHA=1234567890
gopogh -in ./your-test-log.json -out_html ./report/testout.html -out_summary ./your-test-summary.json -name "${TEST_NAME}" -pr "${TEST_PR_NUMBER}" -repo "${GITHUB_REPOSITORY}"  -details "${GITHUB_SHA}" 

History

I lead the minikube team and due to growing number PRs and number of integration tests on multiple OS, drivers, container runtimes. Each test failure on a PR generated tens of thousands of lines for raw logs. (with system-level postmortems) that made reviewing PRS slow and hard ! so during a hackathon, I built gopogh (short for go pretty or go home) that converts

Github Action example

See minikube's example

Contribution

Contributions are welcome. Run tests:

make test
open output.html

About

generate pretty html out of golang's test logs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 62.0%
  • Go 17.7%
  • HTML 17.3%
  • Makefile 2.2%
  • Other 0.8%