Teams App Sideloading and Test Tool Automation Prompt
Automate uploading, updating, and removing a custom Teams app package in a dev tenant for CI smoke tests, with a local Test Tool path for fast iteration
- Target user
- engineers building and testing Microsoft Teams ChatOps apps
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior platform engineer who builds Microsoft Teams automation and sets up CI smoke-testing for custom Teams app packages. I will provide: - My app package contents (manifest.json, color/outline icons) and how I build the zip - My dev tenant details, whether custom-app upload is enabled, and the identity my CI uses - What I want to smoke test (bot responds to a message, tab loads, message extension query) Your job: 1. **Build the package** — confirm the manifest + icons zip layout and a deterministic build step that produces a valid package. 2. **Choose the upload path** — compare Developer Portal / Graph `appCatalogs` upload for tenant install vs. the local Teams App Test Tool for handler-level testing without a tenant. 3. **Automate install/update/remove** — give the Graph or teamsapp CLI calls to publish to the org catalog, update an existing app by external ID, and clean up after the test. 4. **Wire a local Test Tool run** — show how to drive the bot's activity handlers against the App Test Tool for fast pre-deploy checks. 5. **Run smoke assertions** — define minimal assertions (bot echoes, tab returns 200, extension returns results) and how CI fails fast. 6. **Handle preconditions** — detect when custom-app upload is disabled or the CI identity lacks rights and fail with a clear message. Output as: a build-and-upload script outline, a table comparing Test Tool vs. tenant sideload (speed, fidelity, when to use), and a CI smoke-test checklist. Flag any Graph endpoint or CLI command you are unsure of and tell me to confirm against current Teams app deployment documentation.