Back to list
SnapLogic

run-tests

by SnapLogic

0🍴 4📅 Jan 23, 2026

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 WantExample Prompt
Run specific testsHow do I run Oracle tests?
Run multiple testsHow do I run both Snowflake and Kafka tests?
First time setupI'm running tests for the first time, what should I do?
Understand tagsWhat tags are available for running tests?
Quick iterationI want to run tests quickly without Groundplex setup
View resultsWhere are the test results stored?
TroubleshootMy tests are failing, how do I debug?
Explain executionExplain 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:

  1. Give the direct command(s) first
  2. Add a brief note if relevant
  3. Offer "Want me to explain more?" only if appropriate

Quick Command Reference

Test TypeCommand
Oraclemake robot-run-all-tests TAGS="oracle" PROJECT_SPACE_SETUP=True
PostgreSQLmake robot-run-all-tests TAGS="postgres" PROJECT_SPACE_SETUP=True
Snowflakemake robot-run-all-tests TAGS="snowflake" PROJECT_SPACE_SETUP=True
Kafkamake robot-run-all-tests TAGS="kafka" PROJECT_SPACE_SETUP=True
MySQLmake robot-run-all-tests TAGS="mysql" PROJECT_SPACE_SETUP=True
SQL Servermake robot-run-all-tests TAGS="sqlserver" PROJECT_SPACE_SETUP=True
S3/MinIOmake robot-run-all-tests TAGS="s3" PROJECT_SPACE_SETUP=True
Multiplemake 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:

  1. Tests run inside Docker containers - Not on your local machine
  2. Services (databases, Kafka, etc.) run in containers - They communicate via Docker networks
  3. Environment variables are managed - Loaded from .env files into containers
  4. 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

ScenarioRecommended Command
First time setupmake robot-run-all-tests TAGS="..." PROJECT_SPACE_SETUP=True
CI/CD pipelinemake robot-run-all-tests TAGS="..." PROJECT_SPACE_SETUP=True
Subsequent runsmake robot-run-all-tests TAGS="..."
Groundplex already runningmake robot-run-tests-no-gp TAGS="..."
Quick test iterationmake 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

TagDescriptionRequired Service
oracleOracle database testsmake oracle-start
postgresPostgreSQL testsmake postgres-start
mysqlMySQL testsmake mysql-start
sqlserverSQL Server testsmake sqlserver-start
snowflakeSnowflake testsmake snowflake-mock-start
db2DB2 testsmake db2-start
teradataTeradata testsmake teradata-start
kafkaKafka messaging testsmake kafka-start
jmsActiveMQ/JMS testsmake activemq-start
salesforceSalesforce mock testsmake salesforce-mock-start
s3 / minioS3/MinIO testsmake minio-start
emailEmail testsmake 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

IssueCauseSolution
"Environment variable not found"Missing .env fileRun make check-env
"Connection refused" to databaseService not runningRun make <db>-start
"Groundplex not available"Groundplex not startedUse robot-run-all-tests
"Project space not found"First run without setupAdd PROJECT_SPACE_SETUP=True
Tests hang or timeoutService health issuesCheck make status

Debug Steps

  1. Check environment: make check-env
  2. Check services: make status
  3. View test logs: open test/robot_output/log-*.html
  4. Re-run with fresh setup: Add PROJECT_SPACE_SETUP=True

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon