Skip to main content

Robot Framework testing harness for the theia/artheia stack.

Project description

rf-theia

A Robot Framework + TPT testing harness for Theia / Artheia: a reusable, pip-installable library that drives the live supervisor, reads the Tracer.hh feed, regression-tests the artheia generators, and asserts end-to-end signal flow across Functional Clusters.

This repo is the harness only — the reusable library. The .robot scenarios that test a specific Theia live in the consuming project (e.g. pero_theia at testing/scenarios/) and import this library as rf_theia.TheiaTestLibrary.

Install

Into the consuming workspace's venv:

pip install -e /path/to/rf-theia[mcp,dev]
# or, from a deb install:  pip install --find-links /opt/theia/wheels rf-theia

Writing a scenario

The harness exposes one Robot library, rf_theia.TheiaTestLibrary — a single entry point with prefixed keyword families (T Sup for the supervisor, T Sig for signal/trace flow) plus direct TPT idioms:

*** Settings ***
Library           rf_theia.TheiaTestLibrary

*** Test Cases ***
State machine reaches RUNNING
    Load Rig              central
    Start State Machine   sm
    Emit Event            sm    Ready
    Wait For State        sm    RUNNING    within=5s
    Assert Healthy        sm    within=10s
    Verdict               PASS
    [Teardown]            Tear Down Rig

Keywords cover: rig load/teardown, supervisor control (start/stop/restart children, configure trace/log), state-machine drive (Emit Event, Wait For State), and trace/signal assertions over the live Tracer.hh stream.

MCP server (Claude Code)

run_mcp.sh launches an MCP server exposing the harness — run_scenario, list_scenarios, list_keywords, analyze_trace, … It resolves the consuming repo's scenario tree from the environment:

Var Meaning Default
RF_THEIA_WORKSPACE the consuming workspace root (holds the .venv) the dir holding rf-theia/
RF_THEIA_SCENARIOS the .robot scenario tree $RF_THEIA_WORKSPACE/testing/scenarios

Point the workspace's .mcp.json at rf-theia/run_mcp.sh.

Layout

rf_theia/
  TheiaTestLibrary.py   the single Robot library entry point
  adapters/             supervisor gRPC, tracer JSONL decode, the MCP server
  runtime/  testkit/  tpt_engine/  assessment/  space/
pyproject.toml          the rf-theia package (console scripts: rf-theia-mcp)
run_mcp.sh              MCP launcher (resolves the consuming repo's scenarios)

Consumed as a git submodule mounted at rf-theia/ in the umbrella repo.

License

Apache-2.0 — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rf_theia-0.1.0.tar.gz (72.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rf_theia-0.1.0-py3-none-any.whl (88.7 kB view details)

Uploaded Python 3

File details

Details for the file rf_theia-0.1.0.tar.gz.

File metadata

  • Download URL: rf_theia-0.1.0.tar.gz
  • Upload date:
  • Size: 72.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rf_theia-0.1.0.tar.gz
Algorithm Hash digest
SHA256 91c14365e1e12285a7afca35f0bf8e5143b034a46540ae47d5b553e07c9fd40b
MD5 b1abf8551c2e1d0275156ff5a885c80b
BLAKE2b-256 7a7f0e7545d5bf3d6270b111f1229e8afe7589ef6d8c3040794789cdd1580267

See more details on using hashes here.

File details

Details for the file rf_theia-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rf_theia-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 88.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rf_theia-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f85f957374e23f8e94b308831a5b6bb820d8341e17c63fc910731badce2037ed
MD5 cdf52eaa76dca13233ee907e3e08ea0e
BLAKE2b-256 0c35992e531b4e26a394fea75967052002e575db8c3410faa4410c8be25059fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page