Skip to main content
Test your app using a separate test database so you can try changes without affecting your live production data. After you turn on the Test Data toggle in App settings, you can switch between production and test data, so you can see how your app behaves with test records before going live. For example, if you are building a bookings app, you can use test data to create fake services and test bookings, cancellations, and reminders without filling your real schedule. You can check that your flows, prices, and emails look right with test data, and keep your live app’s calendar for real clients only.
Test data limits:
  • Plan: You need a Builder plan or higher to use test data.
  • Published app: Your published app always uses production data. Turning on testing mode only affects data in the dashboard and in preview.

Turning on testing mode

Turn on the Test Data setting in App settings to create a separate test database for your app and access the testing mode in preview.
When you turn on Test Data, it creates a new, empty database. Existing production data is not copied to the test database.
To turn on the testing mode:
  1. Click Dashboard in your app editor.
  2. Click Settings in the left menu.
  3. Under Advanced Capabilities, turn on the Test Data toggle.
App settings with the Test Data toggle outlined

Turning on Test Data in your app settings


Accessing your test data

Go to the Data tab to view and edit records in your tables and choose whether you are working with production or test data. You can keep production as your source of truth while you experiment with structure or content in the test environment.
A data table with the Production and Test switch outlined

Switching between production and test data in the Data tab

To access your test data:
  1. Click Dashboard in your app editor.
  2. Click Data.
  3. Click the data table you want to work with on the left menu.
  4. Click Test at the top.
  5. Add, edit, or delete records.
You can also ask the AI chat to add test data for you.
How production and test data stay separate:
  • Changes you make with Production selected affect only your production data.
  • Changes you make with Test selected affect only your test data.
  • Production and test data are completely separate. Updating one does not update the other.

Testing your app in preview

Use preview mode to see how your app behaves with real interactions while keeping your live data safe. At the top of your app preview, you can switch between production and testing mode so you control where preview reads and writes data. If you make changes in the testing mode, you can go to the Data tab and select Test to see the records created.
The app preview with the Turn on test data icon outlined

Turning on test data mode in the app preview

To preview your app with testing mode:
  1. Click Preview in your app editor.
  2. At the top of the preview, click the Turn on test data icon .
  3. Use your preview as normal to create, update, or delete data.
How testing mode works in preview:
  • When testing mode is turned on in preview, all data reads and writes go to your test data.
  • When testing mode is turned off in preview, all data reads and writes go to your production data.
  • Turning the test mode on and off in preview does not affect which environment your published app uses. The live app always uses production data.

Share a testing link so teammates or clients can try your app with test data and unpublished changes. Anyone who opens the testing link interacts with your test database only, so your live app and production records stay safe. To share a testing link:
  1. Click Publish at the top right of your app editor.
  2. Click Testing link.
  3. Click Copy testing link.
  4. Paste the link where you want to share it, such as in an email or chat.
The publish panel with Copy testing link outlined

Copying a testing link to your app

About the testing link:
  • The testing link is available only after you turn on Test Data in App settings.
  • People who open the testing link see your unpublished changes and interact with test data only. The link does not change your live app or production records.

Testing backend functions

When Test Data is on, a backend function uses test data or production data depending on where you run it. This lets you try a function on test records before it touches your live data, even for functions that can read or write all of your app’s records. Which data a function uses depends on where you run it: Your last test data choice is the one you made with the Turn on test data icon in preview or the Production and Test switch on the Data tab. When you click Run Function, the function runs as you, signed in with your own account.
Outside services are always real: Test data only separates your app’s records. When a function calls an outside service, such as a payment provider or an email service, that call is real.
To make sure a function used the data you expected, check your data tables after you run it. To check where a function saved its records:
  1. Go to your app editor.
  2. Click Dashboard.
  3. Click Data.
  4. Click the data table the function writes to.
  5. Click Test at the top to see the records the function saved to your test data.
  6. Click Production to make sure your live data didn’t change.

FAQs

Click a question below to learn more about testing your app with test data.
When you turn on testing mode, your test database starts empty. Records only appear after you add or edit the test data in the Data tab, or you create data in preview mode with testing mode turned on.
There is no automatic sync between production and test data in either direction. If you want a record to exist in both environments, create or import it separately.
You can go back to Settings at any time and turn off the Test Data toggle. When you turn it off, the test database is hidden from the Data tab, but existing test data is kept in case you turn it back on later.
Yes. Your app’s users aren’t part of test data, so production and test share 1 set of users. When someone signs in through a testing link, they use their usual account, and any records they create go to your test data. Changes to a user’s profile or role while you test also change their real account.
When the AI chat adds, edits, or deletes records for you, tell it whether you want test data or production data, then check your data tables to make sure the records went where you expected. When it runs a backend function for you, it follows the last test data choice you made in your app editor. Learn more about which data a backend function uses.
The AI chat adding records, shown in the Test tab of a data table

Asking the AI chat to add test data

Yes. Turn on test data in your branch’s preview and add records as you use your app. Main and every branch share 1 set of test data, so the records show up everywhere. Learn more about using test data on a branch.