def pytest_runtest_logstart()

in teamcity/pytest_plugin.py [0:0]


    def pytest_runtest_logstart(self, nodeid, location):
        # test name fetched from location passed as metainfo to PyCharm
        # it will be used to run specific test
        # See IDEA-176950, PY-31836
        path, lineno, test_name = location
        if test_name:
            test_name = str(test_name).split(".")[-1]
        path = os.path.join(self.rootdir, path)
        lineno = lineno + 1 if lineno is not None else None
        self.ensure_test_start_reported(self.format_test_id(nodeid, location), test_name, path=path, lineno=lineno)