def METHOD_NAME(caplog: LogCaptureFixture, framework: str, excluded_paths: list[str] | None = None) -> None:
    # given
    caplog.set_level(logging.ERROR)
    runner_registry = RunnerRegistry(
        "", RunnerFilter(framework=[framework], excluded_paths=excluded_paths), *DEFAULT_RUNNERS
    )
    # when
    scan_reports = runner_registry.run(root_folder=str(TESTS_DIR))
    # then
    for report in scan_reports:
        assert report.failed_checks
        assert not report.parsing_errors, f"Found parsing errors for framework '{report.check_type}'"
    assert not caplog.text, caplog.text