run-tests

Run Bactopia nf-tests against target components and generate timestamped logs directories.

521|81|Updated Feb 22, 2019
One-click install
npx skills add https://github.com/bactopia/bactopia --skill run-tests-bactopia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-tests
Source: https://github.com/bactopia/bactopia/tree/main/.claude/skills/run-tests
Command: npx skills add https://github.com/bactopia/bactopia --skill run-tests-bactopia

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires conda, bactopia-test, python3, and includes scripts (resource) components.

What problem does it solve?

Runs the Bactopia nf-tests suite via bactopia-test and produces a timestamped logs/ directory that /review-tests can interpret. Use when asked to run tests, execute tests, test a module, test a subworkflow, test a workflow, or validate a change. Accepts optional tier and component arguments (e.g., "run tests on snippy", "test abricate_run module", "test amrfinderplus subworkflow").

Core Features & Use Cases

  • Orchestrates bactopia-test runs and captures live output for per-component visibility.
  • Generates a timestamped logs/ directory at the repo root for downstream review via /review-tests.
  • Supports filtering by tier and include arguments to target specific modules, subworkflows, or workflows.

Quick Start

Invoke the wrapper to run tests for a specific component and generate a timestamped logs directory ready for review.

Frequently Asked Questions about run-tests

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

FAQPage Schema
How do I run nf-tests for a specific Bactopia module or subworkflow?

Run nf-tests for a Bactopia module or subworkflow by invoking the bactopia-test wrapper with the target component name. The Skill executes the test suite and captures all output into a timestamped logs directory for review.

What is the best way to capture Bactopia test logs for downstream review?

Capturing Bactopia test logs is handled automatically by running the bactopia-test wrapper, which generates a timestamped logs/ directory at the repository root containing the live output for per-component visibility.

Can I filter Bactopia nf-tests by tier or include specific workflows?

You can filter Bactopia nf-tests by applying optional --tier and --include constraints when executing the bactopia-test wrapper, allowing you to target specific modules, subworkflows, or workflows.

Do I need conda and python3 to execute Bactopia nf-tests?

Yes, executing Bactopia nf-tests requires conda, python3, and the bactopia-test dependency to be available in your environment, ensuring safe defaults and clear guardrails during test orchestration.

Why does my Bactopia test run fail to produce a reviewable logs directory?

A missing reviewable logs directory indicates the bactopia-test wrapper did not execute successfully. Ensure your environment has conda and python3 configured properly so the wrapper can generate the timestamped logs/ output.

When should I use this Skill to validate changes to a Bactopia pipeline component?

Use this Skill to validate changes when you need to test a module, subworkflow, or workflow and produce structured logs. It orchestrates bactopia-test runs and captures live output for interpretation by review-tests.