---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.4
alternate:
  - https://yandex.com/dev/games/doc/en/sdk/cocos/testing.md
  - https://yandex.com/dev/games/doc/hi/sdk/cocos/testing.md
  - https://yandex.com/dev/games/doc/ko/sdk/cocos/testing.md
  - https://yandex.com/dev/games/doc/ru/sdk/cocos/testing.md
  - https://yandex.com/dev/games/doc/tr/sdk/cocos/testing.md
  - https://yandex.com/dev/games/doc/vi/sdk/cocos/testing.md
  - https://yandex.com/dev/games/doc/zh/sdk/cocos/testing.md
  - href: en/sdk/cocos/testing.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/en/llms.txt

# Testing

<!-- source: en/_includes/script-common.md -->
<!-- source: en/_includes/script/index-js.md -->

<!-- endsource: en/_includes/script/index-js.md -->

<!-- source: en/_includes/script/requirements-js.md -->

<!-- endsource: en/_includes/script/requirements-js.md -->

<!-- source: en/_includes/script/image-modal-js.md -->

<!-- endsource: en/_includes/script/image-modal-js.md -->
<!-- endsource: en/_includes/script-common.md -->

Games can be launched on the platform from a local server, simplifying the development and testing of functionality related to the SDK.

Please note that you will need to [add a draft of the game](https://yandex.com/dev/games/doc/en/console/add-new-game.md) using the Yandex Games console.

## Build Configuration {#build-configuration}

First of all, you need to configure the project build in the **Project** → **Build** panel.

![](../../_images/cocos/testing/build.webp)

In the window that opens, click **New Build Task** to create a new build configuration.

Set up the parameters. It is usually recommended to enable the **Source Maps** and **Debug** options to facilitate debugging.

![](../../_images/cocos/testing/edit-build-config.webp)

After completing the setup, click the **Build** button to build the project.

Then go to the folder where your project is located. You will see a folder structure similar to this:

```text showLineNumbers
Project name/
└── build/
    └── debug/
        ├── ...
        └── index.html
```

## Setting Up a Local Server {#local-server-setting}

For detailed information, see the section [Launch from local server](https://yandex.com/dev/games/doc/en/concepts/local-launch.md).

### Testing {#testing}

When the local server is running, you can test your game using this link, where XXXXXX is your draft code:

```text
https://yandex.ru/games/app/XXXXXX?draft=true&game_url=https://localhost:6577
```

If you want to test the new version, simply rebuild the project in the **Build** panel without changing any parameters, and refresh the page after the build is complete.

![](../../_images/cocos/testing/rebuild.webp)


---


<!-- source: en/_includes/button-git.md -->
<a href="https://github.com/yandex-games-plugins/cocos">
  <span class="button">Repository</span>
</a>
<!-- endsource: en/_includes/button-git.md -->
