Automated testing

From lilinji/GeneTind-Life-Skills · View interactive version

Automated testing is an AI agent skill from the GitHub repository lilinji/GeneTind-Life-Skills. Define how to automate tests (unit, integration, system/HIL where feasible) in CI/CD pipelines for medical devices with gating and evidence capture.

How to use this skill

Skill file

Automated Testing in CI/CD

Purpose

Define how to automate tests (unit, integration, system/HIL where feasible) in CI/CD pipelines for medical devices with gating and evidence capture.

When to Apply

Requirements (testable)

  1. Scope: Include unit, integration, and where possible system/HIL or simulators; prioritize safety-related modules. Rationale: coverage of risk areas.
  2. Gating: Fail pipeline on test failures; no ignored failures for safety code. Rationale: prevent regressions.
  3. Artifacts: Store test results (JUnit/XML), logs, coverage, and evidence; retain per release. Rationale: auditability.
  4. Flake Management: Detect and address flaky tests; quarantine with issue filed and timeline; do not ignore. Rationale: trustworthiness.
  5. Hardware Tests: If hardware required, provide conditional stages and fallbacks (sim); schedule regular hardware runs (nightly). Rationale: practicality with coverage.

Recommended Practices

Patterns

CI job snippet:

test:
  script: [ "ctest --output-on-failure" ]
  artifacts:
    when: always
    paths: [ "build/test-results.xml", "coverage/" ]

Flake tracking entry:

test_id: TEST-INT-210
status: flaky
issue: QA-1234
expires: 2026-02-01

Anti-Patterns (risks)

Verification Checklist

Traceability

References

Changelog

Audit History

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.