def METHOD_NAME(
    cd_tmp_path: Path, capfd: CaptureFixture[str], caplog: LogCaptureFixture
) -> None:
    """Test ``runway test`` with two tests; one failing required."""
    caplog.set_level(logging.INFO)
    runway_yml = cd_tmp_path / "runway.yml"
    runway_yml.write_text(
        yaml.safe_dump(
            {"deployments": [], "tests": [FAIL_REQUIRED.copy(), SUCCESS.copy()]}
        )
    )
    runner = CliRunner()
    result = runner.invoke(cli, ["test"])
    assert result.exit_code == 1
    captured = capfd.readouterr()
    logs = "\n".join(caplog.messages)
    assert "found 2 test(s)" in logs
    assert "fail-required:running test (in progress)" in logs
    assert "fail-required:running test (fail)" in logs
    assert "fail-required:test required; the remaining tests have been skipped" in logs
    assert "success:running test (in progress)" not in logs
    assert "Hello world" not in captured.out