Skip to content

Conversation

@thrau
Copy link
Member

@thrau thrau commented Dec 16, 2025

Motivation

Tinybird local allows us to do integration testing of the SDK directly in CI without a tinybird account. This will be super helpful as we make more changes to the SDK. Moreover, providing some utilities to make it easier to start up tb local and deploying projects programmatically as part of tests can be useful for downstream projects.

This PR introduces an integration testing harness that automatically spins up tinybird-local, deploys a test project, and then runs tests against it. This is fully integrated into pytest, so no external commands need to be run first, only pytest.

The main new concepts are TinybirdLocalContainer and TinybirdCli, which allow us to programmatically interact with the tb cli and tinybird local. There's also a tests/integration folder which has fixtures that automatically start up tinybird local and deploy the test project to it.

Changes

  • Integration tests are now run against tinybird-local

@thrau thrau force-pushed the tinybird-local-test branch from 9f0a9f2 to a8b45c6 Compare December 16, 2025 18:27
@thrau thrau marked this pull request as ready for review December 17, 2025 08:28
@thrau thrau merged commit f8ef1e3 into main Dec 17, 2025
7 checks passed
@thrau thrau mentioned this pull request Dec 17, 2025
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.

2 participants