Datadog Extension for Visual Studio Code

Join the Beta!

The Datadog extension for Visual Studio Code is in public beta. It is intended for Datadog users who have Synthetic tests set up already. The extension supports running HTTP tests and browser tests. If the extensions stops working unexpectedly, check for extension updates or reach out to the team.

Overview

The Datadog extension for Visual Studio Code helps you improve your code reliability by allowing you to run Synthetic HTTP tests and browser tests on local environments directly in the IDE. The extension ensures that any potential issue resulting from code changes is identified and addressed before the code is deployed into production and impacts your end users.

The Datadog Extension in Visual Studio Code

You can use the Datadog extension to:

  • Run Synthetic tests on your local environments.
  • Set custom parameters without altering the original test definition.
  • See test results locally in Visual Studio Code and in Datadog to access additional information.
  • Test only what matters by executing relevant tests at the same time.
  • Create a list of most frequently used Synthetic tests by adding them to Favorites.

Requirements

Setup

Install the Datadog Extension from the Visual Studio Marketplace.

Run Synthetic tests locally

  1. After installing the Datadog extension, log in to Datadog.
  2. Select a Synthetic test to execute. You can search for specific tests by clicking the Search icon.
  3. To run a test in a local environment, update a Synthetic test’s configuration by enabling the conversion of the start URL and specifying a localhost URL on the Settings page.
  4. Run a test.
The Test Configuration panel and Settings page where you can specify the start URL of a Synthetics test to a localhost URL

Permissions

By default, only users with the Datadog Admin and Datadog Standard roles can create, edit, and delete Synthetic HTTP and browser tests. To get create, edit, and delete access to Synthetic HTTP and browser tests, upgrade your user to one of those two default roles.

If you are using the custom role feature, add your user to any custom role that includes synthetics_read and synthetics_write permissions.

Feedback

To share your feedback, email team-ide-integration@datadoghq.com.

Further Reading