canonical / data-platform-workflows

Reusable GitHub Actions workflows used by the Data Platform team
Apache License 2.0
4 stars 9 forks source link

[RFE] Make `pytest.mark.group` accept strings #132

Closed phvalguima closed 8 months ago

phvalguima commented 8 months ago

The pytest.mark.group can be very helpful when it comes to organizing our tests.

In my case, I am using it to split the backup tests and having one group per cloud: microceph, aws, gcp.

However, on the summary of the tests, in the GH page, it shows as:

Integration test charm | 3.2.4 / ha/test_backups.py | group 1
Integration test charm | 3.2.4 / ha/test_backups.py | group 2
Integration test charm | 3.2.4 / ha/test_backups.py | group 3

Would be nice to be able to specify strings instead of int, then I could have instead:

Integration test charm | 3.2.4 / ha/test_backups.py | group microceph
Integration test charm | 3.2.4 / ha/test_backups.py | group aws
Integration test charm | 3.2.4 / ha/test_backups.py | group gcp
github-actions[bot] commented 8 months ago

https://warthogs.atlassian.net/browse/DPE-3396