Categorygithub.com/duruyao/gotest
repositorypackage
1.0.1
Repository: https://github.com/duruyao/gotest.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

GoTest

GoTest parses test results (CSV files) and creates interactive visualizations in the web.

Install

  • Download the compiled releases for your platform.
  • Type bash build.sh --all to cross compile go application for multi-platform.

Usage

Type gotest -h to show help manual.


   _____    _______        _
  / ____|  |__   __|      | |
 | |  __  ___ | | ___  ___| |_
 | | |_ |/ _ \| |/ _ \/ __| __|
 | |__| | (_) | |  __/\__ \ |_
  \_____|\___/|_|\___||___/\__|


Usage: gotest [OPTIONS]

GoTest parses test results and creates interactive visualizations in the web

Options:
    -h, --help                  Display this help message
    -v, --version               Print version information and quit
    --dir  STRING               Directory of dataset (default: './dataset')
    --host STRING               Host address to listen (default: '0.0.0.0:4936')

Examples:
    gotest
    gotest --dir ./dataset
    gotest --dir ./dataset --host 0.0.0.0:4936

Prepare the dataset, start the application and send http requests.

bash build.sh
tar -zxf dataset.tar.gz
nohup ./gotest </dev/null 1>gotest.out 2>&1 &

if [ -n "$(command -v open)" ]; then OPEN_EXE="open"; else OPEN_EXE="xdg-open"; fi
${OPEN_EXE} "http://0.0.0.0:4936/history?project=vc0728&test_type=similarity&branch=dev&test_case_id=OC9BbGV4TmV0&commit_short_sha=a25708c7"
${OPEN_EXE} "http://0.0.0.0:4936/history?project=vc0768&test_type=similarity&branch=dev&test_case_id=MTYvQWxleE5ldA==&commit_short_sha=c5dc5db1"
${OPEN_EXE} "http://0.0.0.0:4936/history?project=vc0728&test_type=accuracy&branch=dev&test_case_id=QWxleE5ldG9sZDhTdGF0aXN0aWNzU3RhdGlzdGljcw==&commit_short_sha=a25708c7"
${OPEN_EXE} "http://0.0.0.0:4936/history?project=vc0768&test_type=accuracy&branch=dev&test_case_id=QWxleE5ldG5ldzBPdXRsaWVyX1JlbW92ZU91dGxpZXJfUmVtb3ZlRXVjbGlkZWFu&commit_short_sha=c5dc5db1"

The effect is as follows.

web_page_1.png

web_page_2.png