Skip to content

Commit

Permalink
Merge branch 'ci/fix_test_case_name_while_setup' into 'master'
Browse files Browse the repository at this point in the history
ci: assign the test_case_name attribute to the case item while setting up a pytest session

Closes RDT-548

See merge request espressif/esp-idf!26632
  • Loading branch information
hfudev committed Oct 23, 2023
2 parents 5318c8d + a336272 commit 56500b1
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 56500b1

Please sign in to comment.