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

Method __init__

test/run_unit_tests.py:609–616  ·  view source on GitHub ↗
(self, maven: str, tcp_port: int, serial_port: str | None = None, **kwargs: dict[str, Any])

Source from the content-addressed store, hash-verified

607class JavaTests(AbstractTests):
608
609 def __init__(self, maven: str, tcp_port: int, serial_port: str | None = None, **kwargs: dict[str, Any]) -> None:
610 super().__init__(**kwargs)
611
612 self.maven = Path(shutil.which("mvn")) if maven == "mvn" else Path(maven)
613 self.tcp_port = tcp_port
614 self.serial_port = serial_port
615 self.java_test_dir = self.test_dir.joinpath("java_impl_tests/src/test/java/io/github/embeddedrpc/erpc/tests/")
616 self.java_result_dir = self.test_dir.joinpath("java_impl_tests/target/surefire-reports")
617
618 def init_tests(self) -> bool:
619 return run([self.maven, "generate-test-sources"], cwd=self.test_dir.joinpath("java_impl_tests")).returncode == 0

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected