log2reportportal

command module
v0.0.0-...-32e76c1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

README

log2reportportal

[Build Status] [Code Coverage] [Dependencies Status] [Semantic Versioning] [Pre-Commit Enabled] [License] [Go v1.18]

A cli tool to upload testlogs as launches to reportportal

Takes log on stdin, and uploads the test-results to a specific project as a new launch, for example:

export RP_TOKEN=<token>
cat test_data/parallel-kuttl.log | log2reportportal -launch launch20240101 -suite parallel-kuttl -project gitops-adhoc -url https://reportportal-gitops-qe.apps.ocp-c1.prod.psi.redhat.com -skipTls

should then appear as a new launch in https://reportportal-gitops-qe.apps.ocp-c1.prod.psi.redhat.com

Initial Setup

This section is intended to help developers and contributors get a working copy of log2reportportal on their end

1. Clone this repository
git clone https://github.com/AdamSaleh/log2reportportal
cd log2reportportal
2. Install `golangci-lint`

Install golangci-lint from the [official website][golangci-install] for your OS


Installing dependencies

To install all dependencies associated with log2reportportal, run the command

make install
Using Code Formatters

Code formatters format your code to match pre-decided conventions. To run automated code formatters, use the Makefile command

make codestyle
Using Code Linters

Linters are tools that analyze source code for possible errors. This includes typos, code formatting, syntax errors, calls to deprecated functions, potential security vulnerabilities, and more!

To run pre-configured linters, use the command

make lint
Running the Test-Suite

The test-suite is simply a wrapper to run linters, stylecheckers and all tests at once!

To run the test-suite, use the command

make test-suite

In simpler terms, running the test-suite is a combination of running linters and all tests one after the other!

Credits


log2reportportal is powered by a template generated using [go-template][go-template-link]

[go-template][go-template-link]

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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