testomatio / reporter

Testomatio Reporter
126 stars 22 forks source link

Support labels assignment in Test Runs with testomatio reporter #218

Closed tikolakin closed 11 months ago

tikolakin commented 1 year ago

Is your feature request related to a problem? Please describe. Atm, there is no programatic way to assign labels to test runs. It means automated test reports missing necessary test execution information, ex. versions

Describe the solution you'd like I would like to be able to add metadata to a test run when running automated test. Currently there are two types of metadata possible in testomatio - environment and labels As of now, the environment can be passed with TESTOMATIO_ENV variable It would be good to make a similar approach and introduce TESTOMATIO_LABEL variable which can accept a human friendly text values, ex. 1) label string value: labelTitle:labelStringValue if label with such title doesn't exist - log warning message. Otherwise assign labelTitle label to a test run with labelStringValue

2) label (boolean?): labelTitle if label with such title doesn't exist - log warning message otherwise assign label

3) label list value: labelTitle:labelListOptionValue if label with such title and labelOptionValue doesn't exist - log warning. Otherwise assign label with value

example usage TESTOMATIO_LABEL="version:v1.2.3, regression, type:functional"

it would be great to make passed values case insensitive

Describe alternatives you've considered assign labels manually?

Additional context

mykhailiukVitalii commented 1 year ago

It was implemented but not publish to the latest reporter version Wait when PR is merged!

DavertMik commented 11 months ago

@TetianaKhomenko

please try this on beta with a new reporter

@testomatio/reporter@1.1.0-beta.label-assign

Docs

https://github.com/testomatio/reporter/blob/master/docs/pipes/testomatio.md#assign-label-to-run

TetianaKhomenko commented 11 months ago

the feature was implemented

CleanShot 2023-12-05 at 19 10 42@2x