---
title: 単体テストの作成
product: Cloud Code
version: 3.1.0
latest_version: 3.1.0
status: This page documents version 3.1.0. The latest version is 3.1.0.
canonical: https://docs.unity.com/ja-jp/cloud-code/3.1.0/modules/how-to-guides/unit-testing
latest_url: https://docs.unity.com/ja-jp/cloud-code/3.1.0/modules/how-to-guides/unit-testing.md
last_updated: 2026-11-20
generated_at: 2026-11-24T15:05:54.708Z
locale: ja-jp
---

# 単体テストの作成

> Write unit tests for your modules to identify and fix issues early in development.

コードの単体テストは、開発プロセスの早期に問題を特定および修正して、コードが期待どおりに動作するようにし、モジュールにバグが導入されるリスクを軽減するのに役立ちます。

| **トピック**                                           | **説明**                                                                |
| -------------------------------------------------- | --------------------------------------------------------------------- |
| [単体テストプロジェクトの作成](./unit-testing-create-project.md) | JetBrain Rider または Microsoft Visual Studio で単体テストプロジェクトを作成する方法を説明します。 |
| [単体テストの作成](./unit-testing-create.md)               | 例を使用してプロジェクトに単体テストを追加する方法を説明します。                                      |

`NUnit` での単体テストの詳細については、[最初のテストの作成](https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-nunit#creating-the-first-test) に関する Microsoft のドキュメントを参照してください。
