You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assert.Ignore("Ignoring tests under UTR. For testing, include the \"-bypassIgnoreUTR\" command line parameter.");
@@ -47,7 +48,7 @@ public virtual void SetupTestSuite()
47
48
{
48
49
Assert.Ignore("Performance tests should be run from remote test execution on device (this can be ran using the \"run selected tests (your platform)\" button");
49
50
}
50
-
51
+
MultiprocessLogger.Log($"Currently active scene {SceneManager.GetActiveScene().name}");
Debug.LogError($"Expected the currently active scene to begin with ({k_FirstPartOfTestRunnerSceneName}) but currently active scene is {currentlyActiveScene.name}");
60
+
MultiprocessLogger.LogError(
61
+
$"Expected the currently active scene to begin with ({k_FirstPartOfTestRunnerSceneName}) but"+
62
+
$" currently active scene is {currentlyActiveScene.name}");
60
63
}
61
64
m_OriginalActiveScene=currentlyActiveScene;
62
65
@@ -66,6 +69,7 @@ public virtual void SetupTestSuite()
MultiprocessLogger.Log($"Active Worker Count is {MultiprocessOrchestration.ActiveWorkerCount()} and connected client count is {NetworkManager.Singleton.ConnectedClients.Count}");
MultiprocessOrchestration.StartWorkerNode();// will automatically start built player as clients
128
+
MultiprocessLogger.Log($"Spawning testplayer {i} since connected client count is {NetworkManager.Singleton.ConnectedClients.Count} is less than {WorkerCount} and Number of spawned external players is {MultiprocessOrchestration.ActiveWorkerCount()} ");
129
+
stringlogPath=MultiprocessOrchestration.StartWorkerNode();// will automatically start built player as clients
130
+
MultiprocessLogger.Log($"logPath to new process is {logPath}");
131
+
MultiprocessLogger.Log($"Active Worker Count {MultiprocessOrchestration.ActiveWorkerCount()} and connected client count is {NetworkManager.Singleton.ConnectedClients.Count}");
110
132
}
111
133
}
134
+
else
135
+
{
136
+
MultiprocessLogger.Log($"No need to spawn a new test player as there are already existing processes {MultiprocessOrchestration.ActiveWorkerCount()} and connected clients {NetworkManager.Singleton.ConnectedClients.Count}");
@@ -117,15 +143,18 @@ public virtual IEnumerator Setup()
117
143
118
144
if(Time.realtimeSinceStartup>timeOutTime)
119
145
{
120
-
thrownewException($"waiting too long to see clients to connect, got {NetworkManager.Singleton.ConnectedClients.Count-1} clients, but was expecting {WorkerCount}, failing");
146
+
thrownewException($"{DateTime.Now:T} Waiting too long to see clients to connect, got {NetworkManager.Singleton.ConnectedClients.Count-1} clients, and ActiveWorkerCount: {MultiprocessOrchestration.ActiveWorkerCount()} but was expecting {WorkerCount}, failing");
121
147
}
122
148
}
123
149
TestCoordinator.Instance.KeepAliveClientRpc();
150
+
MultiprocessLogger.Log($"Active Worker Count {MultiprocessOrchestration.ActiveWorkerCount()} and connected client count is {NetworkManager.Singleton.ConnectedClients.Count}");
124
151
}
125
152
153
+
126
154
[TearDown]
127
155
publicvirtualvoidTeardown()
128
156
{
157
+
MultiprocessLogger.Log("Running teardown");
129
158
if(!IgnoreMultiprocessTests)
130
159
{
131
160
TestCoordinator.Instance.TestRunTeardown();
@@ -135,16 +164,23 @@ public virtual void Teardown()
0 commit comments