Index of every page on this site: llms.txt
All skills
composiohq avatar

/cli-e2e

@85dab73
by Composiocomposiohq/composio31k stars
4,962
Run it yourself

Write, modify, or debug Docker-based Composio CLI end-to-end tests under ts/e2e-tests/cli, including binary invocation, fixture isolation, output assertions, and package manifests. Use for CLI E2E test suites only; use cli-command for CLI source implementation.

Use this Skill: https://skilld.dev/gh/composiohq/composio/cli-e2e

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesdocker-cli-e2e.md

≈351 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Docker CLI E2E Tests

Architecture

CLI E2E tests run the compiled standalone composio binary inside scratch Debian Docker containers.

Key properties:

  • Each suite lives under ts/e2e-tests/cli/<suite-name>/.
  • Each suite has e2e.test.ts and package.json.
  • Each command call runs in a fresh container.
  • Runtime shell is POSIX sh.
  • HOME=/tmp; auth and API state must come from env vars or command setup.
  • stdout is not a TTY, so piped-mode output rules apply.

A test that needs several commands to share state (log in, then link, then execute) uses a journey container instead: startJourneyContainer from @e2e-tests/utils, or startCliRig from @e2e-tests/cli-fake-backend/rig when the commands need a backend. See ts/e2e-tests/cli/operations/README.md for the fault catalogue those suites implement and ts/e2e-tests/cli/fake-backend/README.md for what the fake backend does and does not verify.

Package Template

{
  "name": "@e2e-tests/cli-<suite-name>",
  "version": "0.0.0",
  "private": true,
  "type": "module",
  "scripts": {
    "typecheck": "tsc --noEmit",
    "test:e2e": "bun test e2e.test.ts",
    "test:e2e:cli": "bun test e2e.test.ts"
  },
  "devDependencies": {
    "@e2e-tests/utils": "workspace:*"
  }
}

Verification

Run from the repo root:

pnpm test:e2e:cli

Use focused Turbo filters when iterating on a single suite.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2d3 checks · Risk SAFE
  • Gen Agent Trust Hub2d

    The skill provides a framework for Docker-based end-to-end testing of the Composio CLI. It uses local workspace dependencies and standard testing tools to verify CLI behavior in isolated containers.

  • Socket4d

    No alerts

  • Snyk2d

    Risk: LOW · No issues

Signed by skilld at 85dab73. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 5 months ago

README badge

README badge for composiohq/composio/cli-e2e