
run-tests
by SnapLogic
SKILL.md
name: run-tests description: Guides users on running Robot Framework tests in the SnapLogic project. Use when the user wants to run tests, needs to know which make command to use, or wants to understand test tags and execution options. user-invocable: true
SnapLogic Test Execution Skill
Usage Examples
| What You Want | Example Prompt |
|---|---|
| Run specific tests | How do I run Oracle tests? |
| Run multiple tests | How do I run both Snowflake and Kafka tests? |
| First time setup | I'm running tests for the first time, what should I do? |
| Understand tags | What tags are available for running tests? |
| Quick iteration | I want to run tests quickly without Groundplex setup |
| View results | Where are the test results stored? |
| Troubleshoot | My tests are failing, how do I debug? |
| Explain execution | Explain how to run robot tests in this project |
Claude Instructions
IMPORTANT: When user asks a simple question like "How do I run Oracle tests?", provide a concise answer first with just the command(s), then offer to explain more if needed. Do NOT dump all documentation.
Response format for simple questions:
- Give the direct command(s) first
- Add a brief note if relevant
- Offer "Want me to explain more?" only if appropriate
Quick Command Reference
| Test Type | Command |
|---|---|
| Oracle | make robot-run-all-tests TAGS="oracle" PROJECT_SPACE_SETUP=True |
| PostgreSQL | make robot-run-all-tests TAGS="postgres" PROJECT_SPACE_SETUP=True |
| Snowflake | make robot-run-all-tests TAGS="snowflake" PROJECT_SPACE_SETUP=True |
| Kafka | make robot-run-all-tests TAGS="kafka" PROJECT_SPACE_SETUP=True |
| MySQL | make robot-run-all-tests TAGS="mysql" PROJECT_SPACE_SETUP=True |
| SQL Server | make robot-run-all-tests TAGS="sqlserver" PROJECT_SPACE_SETUP=True |
| S3/MinIO | make robot-run-all-tests TAGS="s3" PROJECT_SPACE_SETUP=True |
| Multiple | make robot-run-all-tests TAGS="oracle OR postgres" PROJECT_SPACE_SETUP=True |
Note: Use PROJECT_SPACE_SETUP=True for first run, omit for subsequent runs.
Related slash command: /run-tests
Agentic Workflow (Claude: Follow these steps in order)
This is the complete guide. Proceed with the steps below.
Step 1: Understand the User's Request
Parse what the user wants:
- Run tests for a specific system? (Oracle, Snowflake, Kafka, etc.)
- First time setup or subsequent run?
- With or without Groundplex management?
- View results or troubleshoot?
Step 2: Provide Quick Answer First
For simple questions, give the command immediately from the Quick Command Reference table above.
Step 3: Offer More Details If Needed
Only provide additional context if the user asks for explanation or if the question is complex.
Why Make Commands Instead of Robot Command?
Important: In a standard Robot Framework setup, you would run tests directly using:
robot --include oracle test/suite/
However, this project uses a dockerized environment. This means:
- Tests run inside Docker containers - Not on your local machine
- Services (databases, Kafka, etc.) run in containers - They communicate via Docker networks
- Environment variables are managed - Loaded from
.envfiles into containers - Groundplex runs in a container - For SnapLogic pipeline execution
The make commands handle all this complexity for you.
Understanding the Make Targets
1. robot-run-all-tests - Full Workflow with Groundplex
Use this when: First time setup, CI/CD pipelines, or you need Groundplex managed automatically.
make robot-run-all-tests TAGS="your_tags" PROJECT_SPACE_SETUP=True|False
Execution Flow:
Phase 1: Project Space Setup → Phase 2: Launch Groundplex → Phase 3: Run Tests
2. robot-run-tests-no-gp - Without Groundplex Launch
Use this when: Groundplex is already running, or tests don't need Groundplex.
make robot-run-tests-no-gp TAGS="your_tags" PROJECT_SPACE_SETUP=True|False
When to Use Which Target
| Scenario | Recommended Command |
|---|---|
| First time setup | make robot-run-all-tests TAGS="..." PROJECT_SPACE_SETUP=True |
| CI/CD pipeline | make robot-run-all-tests TAGS="..." PROJECT_SPACE_SETUP=True |
| Subsequent runs | make robot-run-all-tests TAGS="..." |
| Groundplex already running | make robot-run-tests-no-gp TAGS="..." |
| Quick test iteration | make robot-run-tests-no-gp TAGS="..." |
Understanding Robot Framework Tags
Tags are labels attached to test cases that allow you to selectively run tests.
Using Tags with Make Commands
# Run only tests with 'snowflake_demo' tag
make robot-run-all-tests TAGS="snowflake_demo"
# Run tests with multiple tags (OR logic)
make robot-run-all-tests TAGS="snowflake_demo OR postgres_demo"
# Run tests with multiple tags (AND logic)
make robot-run-all-tests TAGS="snowflake_demo AND task_creation"
# Exclude tests with specific tag
make robot-run-all-tests TAGS="NOT cleanup"
Available Test Tags by System
| Tag | Description | Required Service |
|---|---|---|
oracle | Oracle database tests | make oracle-start |
postgres | PostgreSQL tests | make postgres-start |
mysql | MySQL tests | make mysql-start |
sqlserver | SQL Server tests | make sqlserver-start |
snowflake | Snowflake tests | make snowflake-mock-start |
db2 | DB2 tests | make db2-start |
teradata | Teradata tests | make teradata-start |
kafka | Kafka messaging tests | make kafka-start |
jms | ActiveMQ/JMS tests | make activemq-start |
salesforce | Salesforce mock tests | make salesforce-mock-start |
s3 / minio | S3/MinIO tests | make minio-start |
email | Email tests | make maildev-start |
Test Results
Location
test/robot_output/
├── output-YYYYMMDD-HHMMSS.xml # Raw results (for CI/CD)
├── log-YYYYMMDD-HHMMSS.html # Detailed execution log
└── report-YYYYMMDD-HHMMSS.html # Summary report (open this)
Viewing Results
# Open the latest report (macOS)
open test/robot_output/report-*.html
# Find the latest report
ls -lt test/robot_output/report-*.html | head -1
Troubleshooting
Common Issues
| Issue | Cause | Solution |
|---|---|---|
| "Environment variable not found" | Missing .env file | Run make check-env |
| "Connection refused" to database | Service not running | Run make <db>-start |
| "Groundplex not available" | Groundplex not started | Use robot-run-all-tests |
| "Project space not found" | First run without setup | Add PROJECT_SPACE_SETUP=True |
| Tests hang or timeout | Service health issues | Check make status |
Debug Steps
- Check environment:
make check-env - Check services:
make status - View test logs:
open test/robot_output/log-*.html - Re-run with fresh setup: Add
PROJECT_SPACE_SETUP=True
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon