Skip to content

Commit

Permalink
ci: assign the test_case_name attribute to the case item while settin…
Browse files Browse the repository at this point in the history
…g up a pytest session
  • Loading branch information
alekseiapa committed Oct 23, 2023
1 parent 4076e99 commit a336272
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ def junit_properties(test_case_name: str, record_xml_attribute: Callable[[str, o
record_xml_attribute('name', test_case_name)


@pytest.fixture(autouse=True)
def set_test_case_name(request: FixtureRequest, test_case_name: str) -> None:
request.node.funcargs['test_case_name'] = test_case_name


######################
# Log Util Functions #
######################
Expand Down

0 comments on commit a336272

Please sign in to comment.