MCPcopy Create free account
hub / github.com/FastLED/FastLED / FailedTestEntry

Class FailedTestEntry

ci/util/test_runner.py:908–929  ·  view source on GitHub ↗

A test that failed during a test run.

Source from the content-addressed store, hash-verified

906
907@dataclass
908class FailedTestEntry:
909 """A test that failed during a test run."""
910
911 name: str
912 category: str # "unit" or "example"
913
914 @property
915 def clean_name(self) -> str:
916 """Strip suite prefix (e.g., 'fastled:test_name' -> 'test_name')."""
917 return self.name.split(":")[-1] if ":" in self.name else self.name
918
919 @property
920 def rerun_cmd(self) -> str:
921 if self.category == "example":
922 return f"bash test {self.clean_name} --examples"
923 return f"bash test {self.clean_name} --cpp"
924
925 @property
926 def debug_cmd(self) -> str:
927 if self.category == "example":
928 return f"bash test {self.clean_name} --examples --debug"
929 return f"bash test {self.clean_name} --debug"
930
931
932def _format_failure_summary(

Callers 1

runnerFunction · 0.85

Calls

no outgoing calls

Tested by 1

runnerFunction · 0.68