verdict-flags

Manages Sesame, ensuring proper usage and integration in Android apps.

Updated Jun 28, 2022
One-click install
npx skills add https://github.com/pcasaretto/nix-home --skill verdict-flags
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: verdict-flags
Source: https://github.com/pcasaretto/nix-home/tree/main/home-manager/modules/profiles/shopify/skills/verdict-flags
Command: npx skills add https://github.com/pcasaretto/nix-home --skill verdict-flags

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides best practices and tools for managing Verdict feature flags within Shopify codebases, ensuring consistent and correct testing of feature flag behavior.

Core Features & Use Cases

  • Eliminates Stubbing: Replaces forbidden Verdict::Flag.stubs with proper test helpers.
  • Comprehensive Testing: Guides testing of both enabled and disabled flag states.
  • Use Case: When developing a new feature controlled by a Verdict flag, use this skill to write tests that verify the feature's behavior under different flag configurations, ensuring a smooth rollout.

Quick Start

Use the verdict-flags skill to enable the 'f_new_checkout_experience' flag for all shops.

Frequently Asked Questions about verdict-flags

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

FAQPage Schema
How do I test Verdict feature flags in Shopify Ruby codebases?

To test Verdict feature flags in Shopify Ruby codebases, replace forbidden stubbing methods with dedicated test helpers for subjects like shops and API clients. This enforces best practices and verifies behavior across both enabled and disabled flag states.

Why does stubbing Verdict flags directly cause issues in Shopify tests?

Stubbing Verdict flags directly causes issues because it bypasses proper flag manipulation workflows and naming conventions. Replacing deprecated stubs with dedicated test helpers ensures adherence to Shopify testing standards and accurate flag state verification.

What's the best way to replace deprecated Verdict flag stubs in Ruby tests?

The best way to replace deprecated Verdict flag stubs in Ruby tests is using dedicated test helpers designed for various subject types. This approach enforces best practices, facilitates proper flag creation, and verifies both enabled and disabled states.

How do I enable a Verdict feature flag for all shops during testing?

To enable a Verdict feature flag for all shops during testing, use the dedicated test helpers provided for shop subjects to replace deprecated stubbing. This ensures proper flag manipulation and adherence to naming conventions.

Can I verify both enabled and disabled states for a Verdict flag in Ruby?

Yes, you can verify both enabled and disabled states for a Verdict flag in Ruby by using dedicated test helpers. These helpers replace forbidden stubs and guide comprehensive testing of feature flag behavior under different configurations.

Does this approach to Verdict flags enforce specific naming conventions?

Yes, this approach to Verdict flags enforces specific naming conventions and provides structured workflows for flag creation and verification. It ensures adherence to best practices by replacing deprecated stubbing methods with dedicated test helpers.