# Test your Feature Gate

There are three ways to test your feature gate and validate that it's working as expected with the rules you have created:

1. Using the built-in **Test Gate** tool in the Statsig console
2. Using the prototype Javascript **Test App** available in the Statsig console
3. Using the **Diagnostics** tab in the Statsig console

## Option 1: Use the Test Gate tool

To validate your feature gate using the built-in Test Gate tool:

* Log into the Statsig console at https://console.statsig.com
* On the left-hand navigation panel, select **Feature Gates**
* Select the feature gate that you want to validate
* At the bottom of the page, the **Test Gate** window lists all properties available in the rules you have created, as shown below:

{% figure %}
![Test Gate interface showing property fields](https://docs.statsig.com/images/feature-flags/test-gate/129104501-9e7349ae-31fe-47ea-97da-0520fd3d7e1b.png)
{% /figure %}

* Click in the window and edit the value of the Email property to include the users you want to target. For example, type jdoe@example.com as shown below. When the email domain matches "@example.com", the feature gate check succeeds and the window shows PASS. Otherwise, the gate fails and the window shows FAIL.

{% figure %}
![Test Gate showing PASS result for email validation](https://docs.statsig.com/images/feature-flags/test-gate/129104434-0f09087d-80da-4a62-84ac-c51e607e72a1.png)
{% /figure %}

## Option 2: Use the Statsig Test App

To validate your feature gate using the Test App:

* Log into the Statsig console at https://console.statsig.com
* On the left-hand navigation panel, select **Feature Gates**
* Select the feature gate that you want to validate
* At the bottom of the page, select **Check Gate in Test App** at the top right of the Test Gate window (shown by the red arrow). This opens a new browser window with a prototype JavaScript client that initializes and calls the Statsig `checkGate` API.

{% figure %}
![Check Gate in Test App button location](https://docs.statsig.com/images/feature-flags/test-gate/138148684-581bb8d5-86ba-4aef-b24d-44e540fa91f1.png)
{% /figure %}

## Option 3: Use the Diagnostics tab

To validate your feature gate using a live log stream:

* Log into the Statsig console at https://console.statsig.com
* On the left-hand navigation panel, select **Feature Gates**
* Select the feature gate that you want to validate
* Click on the **Diagnostics** tab (next to the Setup tab)
* Scroll down to the **Exposure Stream** panel, where you can see a live stream of gate check events as they happen:

{% figure %}
![Exposure Stream panel showing live gate check events](https://docs.statsig.com/images/feature-flags/test-gate/138149819-5082d7e5-f7ee-42e8-b1ac-f57d9732e68f.png)
{% /figure %}

* In the **Event Count by Group** panel, you can also validate that your application records events as expected for users you expose to the new feature (or not). If you have started recording a new event type to test a new feature's impact, validate that these events appear as you expose more users to the feature.

{% figure %}
![Event Count by Group panel showing feature exposure metrics](https://docs.statsig.com/images/feature-flags/test-gate/141017409-f750c1c6-4c54-4140-bc4d-a3b83f1568fc.png)
{% /figure %}
