goRP

command module
v0.0.0-...-e4fac2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2025 License: MIT Imports: 7 Imported by: 0

README

Build Status Go Report Card License MIT Release GitHub Releases Stats of goRP

goRP

Golang Client, Reporter and CLI Utility for ReportPortal

  1. Installation
  2. CLI Usage
  3. Go Test Reporter

Installation

  • Via Go Install
go install github.com/reportportal/goRP@latest
  • Via cURL (passing version and arch)
curl -sL https://github.com/avarabyeu/goRP/releases/download/v5.0.2/goRP_5.0.2_darwin_amd64.tar.gz | tar zx -C .
  • Via cURL (latest one)
curl -s https://api.github.com/repos/reportportal/goRP/releases/latest | \
  jq -r '.assets[] | select(.name | contains ("tar.gz")) | .browser_download_url' | \
  grep "$(uname)_$(arch)" | \
  xargs curl -sL |  tar zx -C .

Usage

gorp [global options] command [command options] [arguments...]   

COMMANDS:
   launch   Operations over launches
   report   Reports input to report portal
   init     Initializes configuration cache
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --uuid value, -u value     Access Token [$GORP_UUID]
   --project value, -p value  ReportPortal Project Name [$GORP_PROJECT]
   --host value               ReportPortal Server Name
   --help, -h                 show help (default: false)
   --version, -v              print the version (default: false)
Init command
NAME:
    gorp init - Initializes configuration cache
USAGE:
    gorp init [command options] [arguments...]
OPTIONS:
    --help, -h  show help (default: false)
Launch command
USAGE:
   goRP launch command [command options] [arguments...]

COMMANDS:
   list     List launches
   merge    Merge Launches
   help, h  Shows a list of commands or help for one command
List Launches
USAGE:
   goRP launch list [command options] [arguments...]

OPTIONS:
   --filter-name value, --fn value  Filter Name [$FILTER_NAME]
   --filter value, -f value         Filter [$Filter]
   --help, -h                       show help (default: false)
Report command
    NAME:
        goRP report - Reports input to report portal
    USAGE:
        goRP report command [command options] [arguments...]
    COMMANDS:
        test2json  Input format: test2json
    OPTIONS:
        --help, -h  show help (default: false)
Report test2json command
NAME:
   goRP report test2json - Input format: test2json

USAGE:
   goRP report test2json [command options]

OPTIONS:
   --file string, -f string                                 File Name [$FILE]
   --launchName string, --ln string                         Launch Name (default: "gorp launch") [$LAUNCH_NAME]
   --reportEmptyPkg, --ep                                   Whether empty packages need to be reporter. Default is false (default: false) [$REPORT_EMPTY_PKG]
   --attr string, -a string [ --attr string, -a string ]    Launch attribute with format 'key:value'. Omitting a ':' separator will tag the launch with the value.
   --print-launch-uuid                                      Print launch UUID to console (default: false)
   --quality-gate-check, --qgc                              Check quality gate status. Exits with exit code 10 if quality gate check fails. (default: false) [$QUALITY_GATE_CHECK]
   --quality-gate-timeout duration, --qgt duration          Timeout for quality gate check (default: 1m0s) [$QUALITY_GATE_TIMEOUT]
   --quality-gate-check-interval duration, --qgci duration  Interval for quality gate check (default: 3s) [$QUALITY_GATE_CHECK_INTERVAL]
   --help, -h                                               show help
Quality Gate command
NAME:
   goRP quality-gate - Quality gate commands

USAGE:
   goRP quality-gate [command [command options]] 

COMMANDS:
   check, qgc  Check the quality gate status of a launch

OPTIONS:
   --help, -h  show help
Check Quality Gate
NAME:
   goRP quality-gate check - Check the quality gate status of a launch

USAGE:
   goRP quality-gate check

OPTIONS:
   --help, -h                                               show help
   --quality-gate-check-interval duration, --qgci duration  Interval for quality gate check (default: 3s) [$QUALITY_GATE_CHECK_INTERVAL]
   --quality-gate-timeout duration, --qgt duration          Timeout for quality gate check (default: 1m0s) [$QUALITY_GATE_TIMEOUT]

   source

   --launch-uuid string  Launch uuid to check the quality gate status for [$LAUNCH_UUID]
   --stdin               Parse stdin for launch uuid (default: false)

2025/05/23 17:19:21 one of these flags needs to be provided: launch-uuid, stdin

Using as Golang Test Results Agent

Run tests with JSON output

go test -json ./... > results.txt

Report The results

gorp report test2json -f results.txt

Report directly from go test output

go test -json ./... | gorp report test2json

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL