MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / client

Method client

test/run_unit_tests.py:382–399  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

380 return self.pytest_test_path(test_case).exists()
381
382 def client(self) -> None:
383 result_file = self.get_result_file()
384
385 pytest_command = [
386 "pytest", str(self.pytest_test_path(self.test_case)),
387 f"--junitxml={result_file}",
388 "--client",
389 *self.client_extra_parameters
390 ]
391
392 if self.transport == "tcp":
393 pytest_command.extend(["--port", str(self.tcp_port)])
394 elif self.transport == "serial" and self.serial_port:
395 pytest_command.extend(["--serial", self.serial_port])
396 else:
397 raise ValueError
398
399 self.client_process = Popen(pytest_command)
400
401 def server(self) -> None:
402 pytest_command = [

Callers

nothing calls this directly

Calls 2

pytest_test_pathMethod · 0.95
get_result_fileMethod · 0.45

Tested by

no test coverage detected