Exemplo n.º 1
0
        public void WriteResultFile(XmlNode resultNode, string outputPath)
        {
            var durationAttr = resultNode.Attributes?["duration"];

            if (durationAttr?.Value == null)
            {
                return;
            }

            double durationValue;

            if (!double.TryParse(durationAttr.Value, NumberStyles.Any, CultureInfo.InvariantCulture, out durationValue))
            {
                return;
            }

            TeamCityWriter.WriteBuildStatistics("TestsDuration", durationValue.ToString(CultureInfo.InvariantCulture));
        }