analyses-snapshot-testing

Validate protocol analysis outputs against committed JSON snapshots.

515|208|Updated Jul 6, 2015
One-click install
npx skills add https://github.com/Opentrons/opentrons --skill analyses-snapshot-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyses-snapshot-testing
Source: https://github.com/Opentrons/opentrons/tree/main/.cursor/skills/analyses-snapshot-testing
Command: npx skills add https://github.com/Opentrons/opentrons --skill analyses-snapshot-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill codifies conventions for maintaining stable protocol analysis results by comparing against committed JSON snapshots, preventing regressions as analysis code evolves.

Core Features & Use Cases

  • Regression testing of protocol analyses to detect unintended changes
  • Snapshot management with a dedicated registry and audit workflow
  • CI/CD integration to run snapshot tests across multiple protocols and environments

Quick Start

Run the full snapshot test suite to verify current analyses against the repository's snapshots.

Frequently Asked Questions about analyses-snapshot-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent regressions in protocol analysis outputs?

Snapshot testing maintains stable protocol analysis by comparing outputs to committed JSON snapshots. A dedicated test suite validates results against a snapshot registry to detect unintended changes as analysis code evolves.

What is the best way to manage JSON snapshots across development and CI pipelines?

Managing JSON snapshots across CI pipelines involves using a dedicated snapshot registry stored under tests/__snapshots__/. The workflow generates, audits, and updates these committed snapshots to maintain consistency during development and pull requests.

How do I run snapshot tests for protocol analysis in my repository?

Running snapshot tests for protocol analysis requires executing a dedicated test suite. This suite verifies current analyses against the repository's committed JSON snapshots to detect any regressions in the workflow outputs.

Does snapshot testing work with Python CI/CD workflows for protocol analysis?

Snapshot testing integrates directly with Python CI/CD workflows to validate protocol analysis. It runs tests across multiple protocols and environments, using committed JSON snapshots to audit and update results during continuous integration.

When should I update committed JSON snapshots for protocol analysis?

Committed JSON snapshots for protocol analysis should be updated when intentional changes occur in the analysis code. The audit workflow within the CI pipeline manages these updates to ensure snapshot tests reflect the desired new outputs.