generate-test

Generate iRule test scripts with assertions from source code analysis.

59|6|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/bitwisecook/tcl-lsp --skill generate-test-bitwisecook
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-test
Source: https://github.com/bitwisecook/tcl-lsp/tree/main/.claude/skills/generate-test
Command: npx skills add https://github.com/bitwisecook/tcl-lsp --skill generate-test-bitwisecook

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill automates the creation of comprehensive test scripts for iRules, significantly reducing the manual effort and increasing the reliability of testing Tcl-based iRules.

Core Features & Use Cases

  • Automated Test Generation: Creates test files for iRules, covering various execution paths and conditions.
  • Metadata Extraction: Analyzes iRules to identify events, commands, objects, and variables.
  • Control Flow Analysis: Generates tests based on the iRule's control flow graph for thorough branch coverage.
  • Multi-TMM Detection: Automatically identifies and adds tests for multi-TMM (Traffic Management Microkernel) patterns.
  • Use Case: When developing a complex iRule for request routing, use this Skill to generate a full suite of tests that cover all possible conditions, ensuring the iRule behaves as expected under various scenarios, including multi-TMM environments.

Quick Start

Use the generate-test skill to create a test script for the iRule file named 'my_irule.tcl'.

Frequently Asked Questions about generate-test

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

FAQPage Schema
How do I generate iRule test scripts automatically?

This Skill generates iRule test scripts by analyzing your iRule source code for events, commands, pools, and variables, then producing complete test files with assertions based on the control flow graph.

What is the Event Orchestrator framework for Tcl testing?

The Event Orchestrator framework is used to execute generated test files for Tcl-based iRules. This Skill creates tests compatible with this framework to validate execution paths and conditions.

Do I need Python 3 to run generated iRule tests?

Yes, you need Python 3 and the Tcl AI module installed to execute the generated iRule test scripts. They are required dependencies for running the automated test files.

How are multi-TMM and CMP patterns handled in iRule testing?

The test generator auto-detects multi-TMM and CMP-sensitive patterns in your iRule source code and automatically adds fakeCMP distribution tests to ensure correct behavior across Traffic Management Microkernels.

Can I test all execution paths in an iRule?

Yes, you can test all execution paths in an iRule. The generator performs control flow analysis to create tests that ensure thorough branch coverage across various conditions and routing scenarios.

What is the best way to automate CI/CD testing for F5 iRules?

The best way to automate CI/CD testing for F5 iRules is to use a code generation tool that analyzes source files and outputs test scripts with assertions, which can then be executed in your pipeline.