protected virtual void CollectCoverageData(Project testProject, PrepareArgs prepareParams) { try { var options = MakeCollectParams(); var logging = coverageLogging; var statusCode = CSApi.Collect(options, logging); if (statusCode != 0) { throw new CodeCoverageException(testProject, $"Failed while collecting coverage data. Status code: {statusCode}."); } } catch (Exception e) { throw new CodeCoverageException(testProject, $"Failed while collection coverage data.", e); } CollectArgs MakeCollectParams() { return(new CollectArgs { RecorderDirectory = prepareParams.InputDirectory }); } }
void HandleHandlePrepare(object o, PrepareArgs args) { if (args.Page == confirm) { this.GdkWindow.Cursor = new Cursor(CursorType.Watch); OCMApp.UpdateGUIThread(); confirm.Prepare(); this.GdkWindow.Cursor = new Cursor(CursorType.Arrow); } }
protected override void CollectCoverageData(Project testProject, PrepareArgs prepareParams) { try { progress.Report(new Log("Collecting coverage data...", LogLevel.Info)); base.CollectCoverageData(testProject, prepareParams); FinishedGatheringCoveage(); } catch (Exception e) { progress.Report(new Log(e.Message, LogLevel.Error)); throw e; } }