Skip to main content

Published

Feature flag integrations

In brief: A feature flag connection gives TestChimp read-only access to your provider's flag catalog. It adds the flags and arms that exist, so feature flag coverage can show arms no test has run.

A feature flag connection lets TestChimp read your provider's flag catalog: which flags exist, their arms, and the rollout in the environment your tests run against. Feature flag coverage uses the catalog to list arms that no test has run. Without a connection, coverage still shows the arms your tests ran, and marks those flags Catalog unknown.

The connection only reads. TestChimp never changes flags, targeting or experiments in your provider.

Supported providers​

ProviderCredentialWhat sync readsEnvironments
LaunchDarklyAPI access token and project keyFlags, variations, the default rule rollout per environmentThe project's environments
PostHogPersonal API key and project IDFeature flags, multivariate variants and rollout percentagesOne environment per project
StatsigConsole API keyFeature gates and experimentsDevelopment, staging, production

Flags from any other OpenFeature provider are still captured from your tests, and show as Catalog unknown.

Common setup​

Connections are managed by org admins.

  1. Open Project settings → Integrations → Feature flags.
  2. Pick the provider and enter the fields from its guide.
  3. Choose Test connection.
  4. Pick the environment your tests run against. Rollout percentages and per-environment arms come from this environment.
  5. Save. TestChimp syncs the catalog right away.

TestChimp re-syncs the catalog once a day. To pick up a change in the provider sooner, choose Sync now. The connection shows the time and result of the last sync.

Your coding agent can see whether a provider is connected through get-feature-flag-setup-status, which returns the settings link but never the credentials. Agents never ask for or receive provider credentials; connecting is a step you do in settings.

What sync does​

  • Adds new flags and arms, and updates names, descriptions, tags and rollout percentages.
  • Marks flags that no longer exist in the provider as archived. It does not delete them, because past test evaluations refer to them.
  • Keys arms by their value, so renaming a variation in the provider keeps its test history.

Stored data and access​

TestChimp stores:

  • the provider credentials, encrypted, and shown masked after saving;
  • the provider project and the selected environment;
  • the synced catalog: flag keys, names, descriptions, tags, arms and rollout percentages;
  • the time and result of the last sync.

Calls to the provider go to the provider's own API host only, over HTTPS, with a 30-second timeout and a response size cap. A custom base URL must be on the provider's domain.

Use a dedicated, read-only credential, as described in each provider guide.

Credential rotation​

Edit the connection, enter the new secret, test the connection, and save. Leaving a secret field blank while editing keeps the stored value. Revoke the old credential in the provider only after the new one works.

FAQ

Does TestChimp change my flags?

No. Connections only read the flag catalog. TestChimp never changes flags, targeting or experiments.

Who can connect a flag provider?

Org admins, in Project settings, Integrations, Feature flags.

How often does the catalog sync?

When you save the connection and when you choose Sync now.