这是我在查找文档和资源时遇到的问题。如何在不加载场景的情况下完成基本的 Unity 烟雾测试?
从批处理脚本调用冒烟测试
RunSmokeTest.bat
C:\Path\To\Unity.exe -projectPath C:\Path\To\Project -executeMethod Smoketest.Start
Smoketest.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SmokeTest
{
public static void Start()
{
SmokeTest smoke = new SmokeTest();
smoke.MainTest();
}
public void MainTest()
{
}
}