Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
--allure-link-pattern option don't filter any test. #433
Comments
|
Really? pytest --help
So this parameter does not filter tests, it's for short testcase link in the report By the way I'm also looking for a way to run tests based on allure testcase link... |
|
@maxim-zaitsev links are marks too: https://github.com/allure-framework/allure-python/blob/master/allure-pytest/src/helper.py#L36, so you can implement filtering with pytest hook pytest_collection_modifyitems. Something like this https://github.com/allure-framework/allure-python/blob/master/allure-pytest/src/plugin.py#L142 |
|
I use this in my code to make it possible to trigger test by test case id from the allure test case link : https://docs.pytest.org/en/stable/example/markers.html#custom-marker-and-command-line-option-to-control-test-runs. But would be nice to have this feature in the allure-python package directly (since you already have it for Epic ). |
I'm submitting a ...
What is the current behavior?
--allure-link-patternoption don't filter any test, and run the full suite.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
--allure-link-patternshould only run the test with the matching link decorator.Please tell us about your environment:
Other information