log2reportportal
[
]
[
]
[
]
[
]
[
]
[
]
[
]
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
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-link]