A plugin that allows integration into the RobotFramework in order to allow testwise coverage recording for TIA.
Project description
Teamscale Robot Plugin
This plugin allows you to record testwise coverage for the RobotFramework.
Installation
You can install this package via pip install teamscalerobotplugin
Usage
You can specify the plugin via the --listener
option when executing your test suite.
robot --listener teamscalerobotplugin.TiaRobotListener;partition=PARTITION MyTests.robot
There are a number of parameters you can use to customize the plugin:
partition
- Mandatory. The partition in Teamscale for which to retrieve impacted tests and to which to upload testwise coverage. Must be the same partition as supplied to the JaCoCo agent.
url
- The URL on which the JaCoCo Agent is listening.
- DEFAULT:
http://localhost:7001/
log_file
- The name of the file that should be used to write logs
- DEFAULT:
./teamscale-robot-plugin.log
log_level
- The level at which events should be logged to the log file. Errors are always logged to the console as well.
- DEFAULT:
INFO
partial
- Whether the produced testwise coverage report is partial or not. If not, then all tests not contained in the report are deleted from Teamscale.
- DEFAULT: true
Examples
# Using default values
robot --listener "teamscalerobotplugin.TiaRobotListener;partition=Robot Tests" MyTests.robot
# Enabling debug logs
robot --listener "teamscalerobotplugin.TiaRobotListener;partition=Robot Tests;log_level=DEBUG" MyTests.robot
# Setting a custom URL and log file
robot --listener "teamscalerobotplugin.TiaRobotListener;partition=Robot Tests;url=http://localhost:9999/;log_file=mylog.log" MyTests.robot
# Setting a custom URL and making the upload partial
robot --listener "teamscalerobotplugin.TiaRobotListener;partition=Robot Tests;url=http://localhost:9999/;partial=true" MyTests.robot
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for teamscalerobotplugin-0.0.4b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15f75ff680b8dd8ec61ab774ded2433e4842773ba9c17760267cf0f448988469 |
|
MD5 | 30bfa4d4fad301a17e555268d148af1a |
|
BLAKE2b-256 | f2e804d76e53508f8e7229a0f05a913e3a332f7d88a511f1dbf42a2403b00b46 |
Close
Hashes for teamscalerobotplugin-0.0.4b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 953b51e3636c08fc56e9e7a1353b01bc936ccf01b558bfedf56f6ce21c028057 |
|
MD5 | 3a53108b28c79797d961946ed0b80ded |
|
BLAKE2b-256 | 0d28b89c93bf9d5faf0caade0880f6dc65d8add2440626964f6a654737768bb6 |