---
title: Test your app
slug: optimizely-connect-platform/docs/test-your-app-ocp2
docTags: 
createdAt: 2026-07-23T12:37:04.247Z
---

Optimizely Connect Platform (OCP) app templates include a Vitest configuration (`vitest.config.ts`), but you can use any unit testing framework as long as you configure it to run using the `yarn test` command. Unit tests run automatically before uploads and when building your app to run on OCP infrastructure. If any tests fail, you cannot publish your app.

:::hint{type="info"}
**📘 Note**
You should implemenet overage minimums.
:::

See the basic template (generated from the `ocp app init` command) for examples on how to use unit tests to cover difficult tasks such as a state machine-based job.

## Install into test accounts

To ease development and testing, you can install apps into an account from the OCP command-line interface (CLI), even when they are not visible in the OCP App Directory (for example, development and beta versions).

Use pre-release tags, like `-dev` or `-beta`, to publish a new version of an app without making it public or automatically upgrading existing installations.

### Manually install into test accounts

You can also manually install pre-release apps from the CLI, using the following command:

```shell
ocp directory install my_app@0.0.0-dev <tracker_id>
```

Where `<tracker_id>` is the Tracker ID of the OCP account to which you want to install. When this command completes, your app is installed and ready to go. You can verify the app is installed with the following command:

```shell
ocp directory list-installs my_app@0.0.0
```

### Manually uninstall an app

To manually uninstall an app from an account, run the following command in the CLI:

```shell
ocp directory uninstall my_app@0.0.0-dev <tracker_id>
```
