# Testing

BlackDiamond Studio can create a set of unit tests for all the migrated JavaScript Stored Procedures. This feature allows the user to execute, verify, and debug their Stored Procedure code before deploying it into the Snowflake cloud.&#x20;

It is important to note that the execution of these tests depends on an active database connection to your Snowflake cloud.&#x20;

{% hint style="danger" %}
Please consider that it might modify the data existing in your database. We recommend executing these test cases on a development database.
{% endhint %}

Steps:

1. To generate the Stored Procedures Test, right-click on the folder or file containing your migrated stored procedures.&#x20;

![](/files/xmmNNVEQirEhOZTEIo6S)

\
2\. You will receive a confirmation request to proceed with the test generation process.&#x20;

![](/files/SNHL41Z9QUdCiQuIDvcF)

3\. If you select the Yes option, a “test” folder will be generated with the new generated unit tests.

![](/files/iiY4WXbu5fjrmcMaQggt)

4\. The test folder contains the unit test scripts, these scripts can be executed and debugged to verify your stored procedures implementation before deploying it into the Snowflake cloud.

![](/files/F2c3LeX7WwYoDdSlgFVr)

![](/files/S9yP75f0pYZGTI4KzaVA)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gapvelocity.ai/blackdiamond-studio-or-mobilize.net/blackdiamond-studio-documentation/online-code-editor/testing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
