@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 04:45 UTC

next
md 38 lines 1.44 KB
Rendered Raw
1 # CLI `composio version` Test
2
3 Verifies that `composio version` prints the correct version string and respects stdout piping.
4
5 ## Why This Exists
6
7 The CLI separates decoration (stderr) from data (stdout). This suite ensures:
8
9 - `composio version` exits with code 0
10 - stdout contains the version from `packages/cli/package.json`
11 - stderr is empty (no decoration leaks into piped output)
12 - Redirecting stdout to a file captures the clean version string
13 - `composio version --check` emits deterministic JSON for known and unknown release states
14
15 ## What It Tests
16
17 | Test | Description |
18 | ---------------- | ---------------------------------------------------------------- |
19 | Exit code | `composio version` returns 0 |
20 | stdout | Output matches `package.json` version |
21 | stderr | Empty when piped |
22 | File redirect | `composio version > out.txt` captures the version in the file |
23 | Update available | `version --check` reports a newer cached stable version |
24 | Unknown status | `version --check` does not report a failed refresh as up to date |
25
26 ## Requirements
27
28 None. This suite does not require any environment variables.
29
30 ## Isolation Tool
31
32 **Docker** with the CLI built from the current monorepo source.
33
34 ## Running
35
36 ```bash
37 pnpm test:e2e:cli
38 ```