gtest-tdd-loop

Validate Gear/Vara behavior changes with local gtest red-green loops.

17|23|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/gear-foundation/vara-skills --skill gtest-tdd-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gtest-tdd-loop
Source: https://github.com/gear-foundation/vara-skills/tree/main/skills/gtest-tdd-loop
Command: npx skills add https://github.com/gear-foundation/vara-skills --skill gtest-tdd-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the risk of marking Gear or Vara behavior changes as complete without deterministic local test validation, avoiding unreliable deploy-only checks or live-node smoke tests that often miss edge cases in message handling and execution flow.

Core Features & Use Cases

  • Red-Green TDD Workflow: Guides you to write the smallest failing gtest case first, implement minimal code changes, and verify the test passes before proceeding with development.
  • Machine-Readable Test Summaries: Produces structured failure reports tied directly to your current task, not generic workspace-wide test runs.
  • Use Case: When you modify a Sails program's message handler to support a new Gear message type, use this Skill to validate the change with a local gtest loop and get a clear, task-specific pass/fail report.

Quick Start

Use the gtest-tdd-loop skill to validate your latest Gear/Vara behavior change with a local red-green gtest workflow and receive a machine-readable test result summary.

Frequently Asked Questions about gtest-tdd-loop

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

FAQPage Schema
How do I validate Gear message handler changes locally without deploying to a live node?

You can validate Gear message handler changes by running deterministic local gtest red-green loops, which test execution flows directly instead of relying on unreliable live-node smoke checks or deploy-only validation.

What is a gtest TDD loop for Sails program development?

A gtest TDD loop for Sails development is a structured red-green workflow where you write the smallest failing gtest case first, implement minimal code changes, and verify the test passes before proceeding with Gear message handling tasks.

How do I get test failure summaries tied to my current Gear development task?

To get task-specific test failure summaries, use a structured gtest workflow that produces machine-readable reports tied directly to your current development task, rather than running generic workspace-wide test runs.

Does gtest work for testing gas reservations in Vara programs?

Yes, gtest works for testing gas reservations in Vara programs by applying deterministic local test-driven verification to validate execution flows and local validation logic within your structured red-green testing loop.

Why should I use local gtest loops instead of live-node smoke tests for Gear changes?

You should use local gtest loops instead of live-node smoke tests because live-node checks often miss edge cases in message handling, whereas deterministic local gtest validation eliminates the risk of marking incomplete Gear behavior changes as done.

Can I use gtest to verify a new Gear message type in a Sails program?

Yes, you can use gtest to verify a new Gear message type in a Sails program by validating the modified message handler with a local gtest loop to receive a clear, task-specific pass or fail report.