devolo / pytest-adaptavist

pytest plugin generating test execution results within Jira Test Management (tm4j)
MIT License
8 stars 11 forks source link

Use decorators on test cases to specify test_key and step vs renaming test function with test_key and step #32

Closed osanchez42 closed 2 years ago

osanchez42 commented 2 years ago

feature request

Use decorators on test cases to specify test_key and step vs renaming test function with test_key and step

Instead of this

@pytest.mark.project(project_key="myproject")
class TestAPI(unittest.TestCase):
    def test_T1_1(self):
        ...

this

@pytest.mark.project(project_key="myproject")
class TestAPI(unittest.TestCase):
    @pytest.mark.test(test_key="T1", test_step=1)
    def test_api_get_obj(self):
        ...
2Fake commented 2 years ago

Hi,

Seems like a quick win. We will take a look into it.