devolo / pytest-adaptavist

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

Test cases are not attached to test run #23

Closed nonameanon closed 2 years ago

nonameanon commented 2 years ago

Hello. We're having a trouble with test cases. I've created Test object and added methods with test_[test-case-key] syntax, and after running, it only creates new test cycle, with no test cases attached to it. All keys are correct. Project key is also added to global_config file.

@pytest.mark.project(project_key="TEST")
class TestIACM(object):
    def test_T8254(self, meta_data):

Is there any parameter in config that I might have missed? Or there is other way to add test cases to the cycle?

2Fake commented 2 years ago

It looks correct on first view.

The test case TEST-T8254 exists in your test database?

nonameanon commented 2 years ago

Yes, it is. I've also tried with other cases, same result. Also, Zephyr version is 8.0.2, if that is important.

2Fake commented 2 years ago

Could you tell us your pytest and pytest-adptavist version?

nonameanon commented 2 years ago

pytest 6.2.5 pytest-adaptavist 5.1.2

2Fake commented 2 years ago

Could you test with the following test case definition

def test_TEST_T8254(self, meta_data):

nonameanon commented 2 years ago

It worked! Thanks!

2Fake commented 2 years ago

Great!

We will take a look if we have to change our Readme or the code.

Happy testing ;)

2Fake commented 2 years ago

Merge request #24 should fix this issue