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
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 log2reportportal2. Install `golangci-lint`
Install golangci-lint from the [official website][golangci-install] for your OS
To install all dependencies associated with log2reportportal, run the
command
make installCode formatters format your code to match pre-decided conventions. To run automated code formatters, use the Makefile command
make codestyleLinters 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 lintThe 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-suiteIn simpler terms, running the test-suite is a combination of running linters
and all tests one after the other!