Responsible for scanning the directory, running tests on each Python file, and generating the testing report.
__init__(self, directory: str)
: Initializes the TestRunner with the specified directory.run_tests(self) -> str
: Runs the tests on each Python file and returns the testing report as a string.scan_directory(self) -> List[str]
: Scans the directory for Python files and returns a list of file paths.run_syntax_check(self, file_path: str) -> bool
: Runs the syntax check on the Python file and returns True if there are no syntax errors, False otherwise.run_pylint(self, file_path: str) -> List[str]
: Runs Pylint on the Python file and returns a list of linting errors and warnings.run_test_cases(self, file_path: str) -> List[str]
: Runs the test cases on the Python file and returns a list of failed test cases.generate_report(self, file_path: str, syntax_check_passed: bool, pylint_results: List[str], test_results: List[str]) -> str
: Generates the testing report for the Python file.
Represents the testing report for a Python file.
__init__(self, file_path: str)
: Initializes the TestReport with the file path.add_syntax_error(self, error: str)
: Adds a syntax error to the report.add_linting_warning(self, warning: str)
: Adds a linting warning to the report.add_test_failure(self, failure: str)
: Adds a test failure to the report.get_report(self) -> str
: Returns the testing report as a string.