public void RunStarted(ITestAdaptor testsToRun) { if (!Coverage.enabled) { return; } m_IsConnectedToPlayer = CoverageUtils.IsConnectedToPlayer; if (m_IsConnectedToPlayer) { ResultsLogger.Log(ResultID.Warning_StandaloneUnsupported); return; } if (CoverageRunData.instance.isRunning || EditorApplication.isCompiling) { return; } CoverageRunData.instance.Start(); m_CoverageReporterManager.CreateCoverageReporter(); ICoverageReporter coverageReporter = m_CoverageReporterManager.CoverageReporter; if (coverageReporter != null) { coverageReporter.OnRunStarted(testsToRun); } }
static void OnAfterAssemblyReload() { if (!CoverageRunData.instance.isRunning) { return; } CoverageReporterManager.CreateCoverageReporter(); }
internal static void StartRecordingInternal() { bool isRunning = CoverageRunData.instance.isRunning; if (!isRunning) { Coverage.ResetAll(); CoverageRunData.instance.StartRecording(); if (s_CoverageReporterManager == null) { s_CoverageReporterManager = CoverageReporterStarter.CoverageReporterManager; } s_CoverageReporterManager.CreateCoverageReporter(); ICoverageReporter coverageReporter = s_CoverageReporterManager.CoverageReporter; if (coverageReporter != null) { coverageReporter.OnRunStarted(null); } } }