Test Mode

Test Mode helps you make sure that TelemetryDeck is set up correctly in your app and allows you to set up your Insights even during development. And all that without disturbing your valuable user data.

If you don't tell it otherwise, the TelemetryDeck SDK will automatically mark all Signals sent while you develop your app as Testing Signals. Testing Signals are only included in your Insights if Test Mode is on in the TelemetryDeck app. In Test Mode, your charts will only show testing data. If Test Mode is off, your charts will only show live data.

This helps you in two ways:

  1. One, even during development, you can immediately see that your setup is working, and that signals are in fact being sent to TelemetryDeck.
  2. And two, because you can play around with the types of signals that you will receive, it helps you set up your Insights during development. This way, they are ready to receive the real data once you release your version.

Controlling wether to send Test Signals

By default, the TelemetryDeck SDK will mark all signals you send as Testing Signals exactly when your build configuration is set to DEBUG.

This means that in most Xcode setups, whenever you run your app in the simulator or directly from Xcode, you'll send testing signals.

If you want to override this behavior, you can set the TelemetryManagerConfiguration.testMode property by hand.

However, we estimate that most people will not have to do this. Let us know if you think differently, we'd love to hear from you!

Didn't Find Your Answer?

Join the Slack Discussions on Github More Docs