Skip to content

docs(agents): import and export tests - #215

Merged
Him188 merged 1 commit into
mainfrom
him188/import-export-tests
Sep 30, 2026
Merged

Him188 merged 1 commit into
mainfrom
him188/import-export-tests

Conversation

@Him188

@Him188 Him188 commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

New page Import and Export Tests (agents/test/import-export-tests) under Agents > Test:

  • The export format: which fields are ignored on import, what agent_ids does, and where tool references live.
  • A script that exports an agent's tests (or the whole library) to JSON files, following pagination.
  • Importing within the same team, and retargeting the copies to another agent.
  • Importing into another team: recreate the tools, then a script that remaps webhook and client tool ids by name through List Test Tools and stops on a missing tool. A warning explains why unmapped ids save fine but misbehave at run time.

The agent tests page links to it from its export and import bullet. All three scripts were run end to end against a mock of the API (pagination, cursor encoding, remapping).

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Documentation
    • Added guidance for exporting agent tests as JSON and importing them into the same or another team.
    • Documented how cross-team imports remap webhook and client tool IDs by name, and how imports handle test fields and unavailable tools.
    • Included scripts for paginated exports and imports, and linked the new guide from the existing test documentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Him188
Him188 enabled auto-merge (squash) September 30, 2026 07:27
@mintlify

mintlify Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
hanabiaiinc 🟢 Ready View Preview Sep 30, 2026, 7:27 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@coderabbitai

coderabbitai Bot commented Sep 30, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 5824b77f-71a7-4210-ad1f-87ad7e5354e5

📥 Commits

Reviewing files that changed from the base of the PR and between 85d499c and 48f4778.

📒 Files selected for processing (3)
  • agents/test/agent-tests.mdx
  • agents/test/import-export-tests.mdx
  • docs.json
 _____________________________________________________________________
< Not saying it's bad... but the compiler just asked for a union rep. >
 ---------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Him188
Him188 merged commit 47b4451 into main Sep 30, 2026
5 of 6 checks passed
@Him188
Him188 deleted the him188/import-export-tests branch September 30, 2026 07:29

This branch was successfully deployed

1 active deployment
staging — 48f4778b Deployed Sep 30, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant