# How to test a data source plugin

[View as Markdown](https://grafana.com/developers/plugin-tools/e2e-test-a-plugin/test-a-data-source-plugin/)

The following articles give some tips and tricks on how to test data source plugins, including example tests to cover common scenarios. To write end-to-end tests similar to the ones in this guide, you'll need your data source to be configured using provisioning. If you haven't already checked out our guide on how to [set up the required resources](https://grafana.com/developers/plugin-tools/e2e-test-a-plugin/setup-resources.md), do that first.

* [Test configurations](https://grafana.com/developers/plugin-tools/e2e-test-a-plugin/test-a-data-source-plugin/configurations.md)Testing the configuration editor of backend and frontend data sources with valid and invalid configuration
* [Test data queries](https://grafana.com/developers/plugin-tools/e2e-test-a-plugin/test-a-data-source-plugin/data-queries.md)Testing the query editor and the execution of data queries
* [Test variable queries](https://grafana.com/developers/plugin-tools/e2e-test-a-plugin/test-a-data-source-plugin/variable-queries.md)Test a custom variable query editor and the execution of variable queries.
* [Test annotation queries](https://grafana.com/developers/plugin-tools/e2e-test-a-plugin/test-a-data-source-plugin/annotation-queries.md)Test a custom annotation editor and the execution of annotation queries.
* [Test alert queries](https://grafana.com/developers/plugin-tools/e2e-test-a-plugin/test-a-data-source-plugin/alert-queries.md)Test alert queries to ensure the plugin is compatible with alerting
