private void PublishToChildren(NodeCompletedSpecWithSuccess message) { foreach (var sink in Sinks) { sink.Success(message.NodeIndex, message.Message); } }
protected override void HandleNodeSpecPass(NodeCompletedSpecWithSuccess nodeSuccess) { Console.ForegroundColor = ConsoleColor.Green; _teamCityTestWriter?.WriteStdOutput( $"[NODE{nodeSuccess.NodeIndex}:{nodeSuccess.NodeRole}][{DateTime.UtcNow.ToShortTimeString()}]: SPEC PASSED: {nodeSuccess.Message}"); Console.ResetColor(); base.HandleNodeSpecPass(nodeSuccess); }
protected override void HandleNodeSpecPass(NodeCompletedSpecWithSuccess nodeSuccess) { if (UseTestCoordinator) { var nodeMessage = new MultiNodeResultMessage(DateTime.UtcNow.Ticks, nodeSuccess.Message, nodeSuccess.NodeIndex, nodeSuccess.NodeRole, true); TestCoordinatorActorRef.Tell(nodeMessage); } }
public static bool TryParseSuccessMessage(string messageStr, out NodeCompletedSpecWithSuccess message) { var matchStatus = NodePassStatusRegex.Match(messageStr); message = null; if (!matchStatus.Success) { return(false); } if (!matchStatus.Groups["status"].Value.Equals(NodePassed)) { return(false); } var nodeIndex = Int32.Parse(matchStatus.Groups["node"].Value); var passMessage = matchStatus.Groups["test"].Value + " " + matchStatus.Groups["status"].Value; message = new NodeCompletedSpecWithSuccess(nodeIndex, passMessage); return(true); }
protected override void HandleNodeSpecPass(NodeCompletedSpecWithSuccess nodeSuccess) { if (UseTestCoordinator) { var nodeMessage = new MultiNodeResultMessage(DateTime.UtcNow.Ticks, nodeSuccess.Message, nodeSuccess.NodeIndex, true); TestCoordinatorActorRef.Tell(nodeMessage); } }
protected override void HandleNodeSpecPass(NodeCompletedSpecWithSuccess nodeSuccess) { WriteSpecPass(nodeSuccess.NodeIndex, nodeSuccess.Message); base.HandleNodeSpecPass(nodeSuccess); }
public static bool TryParseSuccessMessage(string messageStr, out NodeCompletedSpecWithSuccess message) { var matchStatus = NodePassStatusRegex.Match(messageStr); message = null; if (!matchStatus.Success) return false; if (!matchStatus.Groups["status"].Value.Equals(NodePassed)) return false; var nodeIndex = Int32.Parse(matchStatus.Groups["node"].Value); var passMessage = matchStatus.Groups["test"].Value + " " + matchStatus.Groups["status"].Value; message = new NodeCompletedSpecWithSuccess(nodeIndex, passMessage); return true; }
protected abstract void HandleNodeSpecPass(NodeCompletedSpecWithSuccess nodeSuccess);
private void PublishToChildren(NodeCompletedSpecWithSuccess message) { foreach(var sink in Sinks) sink.Success(message.NodeIndex, message.Message); }