Documentation Index
Fetch the complete documentation index at: https://trunk-4cab4936-mintlify-migrate-trunk-docs-1778256504.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thesetup-trunk-uploads tool helps configure test result uploads to Trunk for flaky test detection and enhanced CI Autopilot analysis. This tool provides step-by-step instructions tailored to your specific test framework and CI provider combination.
The tool guides you through a 4-step process:
- Configure Test Framework - Modify your test configuration to output JUnit XML reports
- Run Tests - Execute at least one test to generate reports
- Test Upload - Manually upload a test report to verify connectivity
- Configure CI - Set up automated uploads in your CI pipeline
Return Type: Structured setup plan to generate test reports and upload to Trunk. Structure: project analysis and setup plan
Parameters
Required Parameters
| Parameter | Type | Description |
|---|---|---|
testFramework | string | The test framework used in your repository (e.g., jest, pytest, mocha) |
ciProvider | string | Your CI provider (e.g., github, circleci) |
orgSlug | string | Your organization slug. If not provided and you belong to multiple organizations, you’ll be prompted to specify one. |
Supported values
Test Frameworks
android- Android testing frameworkbazel- Bazel test runnercypress- Cypress end-to-end testinggotestsum- Go testing with gotestsumjasmine- Jasmine testing frameworkjest- Jest testing frameworkkarma- Karma test runnermaven- Maven Surefire/Failsafe testingminitest- Ruby minitest frameworkmocha- Mocha testing frameworkphpunit- PHPUnit testing frameworkplaywright- Playwright testing frameworkpytest- Python pytest frameworkrspec- Ruby RSpec testing frameworkrust- Rust testing with cargo testswift-testing- Swift Testing frameworkvitest- Vitest testing frameworkxctest- Xcode XCTest framework
CI Providers
buildkite- Buildkite pipelinescircleci- CircleCI pipelinesdrone- Drone CIgithub- GitHub Actionsgitlab- GitLab CI/CDsemaphore- Semaphore CItravis- Travis CIother- Other CI providers (manual configuration)
Usage examples
Basic setup
With Organization Slug
Multiple Test Frameworks
Sample response
The tool returns detailed setup instructions as plain text:Error handling
| Error | Cause | Resolution |
|---|---|---|
Test framework is required | testFramework parameter missing | Provide a supported test framework from the list above |
CI provider is required | ciProvider parameter missing | Provide a supported CI provider from the list above |
User is not authenticated | Missing or invalid authentication | Ensure you’re properly authenticated with Trunk |
User is not a member of any organization | No organization access | Create or join a Trunk organization |
No organizations found | No accessible organizations | Create an organization in the Trunk app |
| Multiple organizations note | User belongs to multiple orgs, none specified | Provide explicit orgSlug parameter |