-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathITestRunCallbackExample.cs
More file actions
43 lines (37 loc) · 1.41 KB
/
ITestRunCallbackExample.cs
File metadata and controls
43 lines (37 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) 2021-2025 Koji Hasegawa.
// This software is released under the MIT License.
using APIExamples.Editor.UnityTestFramework;
using NUnit.Framework.Interfaces;
using UnityEngine.TestRunner;
[assembly: TestRunCallback(typeof(ITestRunCallbackExample))]
namespace APIExamples.Editor.UnityTestFramework
{
/// <summary>
/// Test RunnerコールバックAPI使用例.
/// <see href="https://docs.unity3d.com/Packages/com.unity.test-framework@1.6/api/UnityEngine.TestRunner.ITestRunCallback.html"/>
/// </summary>
/// <seealso cref="ICallbacksExample"/>
public class ITestRunCallbackExample : ITestRunCallback
{
/// <inheritdoc/>
public void RunStarted(ITest testsToRun)
{
// テスト実行が開始されるときに呼ばれます
}
/// <inheritdoc/>
public void RunFinished(ITestResult testResults)
{
// テスト実行が終了したときに呼ばれます
}
/// <inheritdoc/>
public void TestStarted(ITest test)
{
// 個々の(Test Runnerウィンドウにおける)ツリーノードが開始されるときに呼ばれます
}
/// <inheritdoc/>
public void TestFinished(ITestResult result)
{
// 個々の(Test Runnerウィンドウにおける)ツリーノードが終了したときに呼ばれます
}
}
}