testing

Organizes and executes Foundry-based tests for the RuleEngine project.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/darioloetsc/audit-cmtat --skill testing-darioloetsc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/darioloetsc/audit-cmtat/tree/main/lib/Rules/lib/RuleEngine/.claude/skills/testing
Command: npx skills add https://github.com/darioloetsc/audit-cmtat --skill testing-darioloetsc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill consolidates and standardizes the Foundry-based Solidity testing approach for the RuleEngine project, reducing duplication and ambiguity across test suites.

Core Features & Use Cases

  • Clear test organization: separate directories for RuleEngine and RuleEngineOwnable tests, with consistent naming conventions.
  • Reusable test patterns: abstract base contracts and virtual hooks to share common test logic across variants.
  • Quality gates: RBAC and Ownable coverage, helper contracts, and explicit revert-testing patterns to ensure robust security checks.

Quick Start

Use this skill to align your tests with the provided structure and conventions, then run forge test to validate them.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I structure Foundry tests for Solidity smart contracts?

Structure Foundry tests by separating directories for RuleEngine and RuleEngineOwnable variants, using consistent naming conventions. Abstract base contracts and virtual hooks share common test logic, reducing duplication and ambiguity across your Solidity test suites.

What's the best way to test RBAC and Ownable variants in Solidity?

Testing RBAC and Ownable variants is best handled using reusable test patterns with abstract base contracts. This approach enforces quality gates for robust security checks and explicit revert-testing patterns across both access control models.

How do I ensure consistent test quality when reusing Foundry test patterns?

Ensure consistent test quality by leveraging helper contracts and virtual hooks to share common test logic. Adhering to documented directory layouts and explicit revert checks standardizes test development and prevents ambiguous coverage.

Can I use abstract base contracts to streamline Foundry test development?

Yes, you can use abstract base contracts to streamline Foundry test development. They allow you to share common test logic across variants, enabling consistent test quality and reuse of shared patterns for your Solidity project.

Why do I need explicit revert-testing patterns for Solidity smart contracts?

Explicit revert-testing patterns are needed to ensure robust security checks within your Solidity contracts. They provide quality gates for RBAC and Ownable coverage, verifying that unauthorized access attempts correctly revert.

How do I validate Foundry tests after aligning them with a standardized directory layout?

Validate Foundry tests by running the forge test command after aligning your test structure with the provided directory layout and naming conventions. This execution confirms that your standardized test suites function correctly.