BaseTestCaseSummary

Namespace: chutzpah
We found 9 examples in language CSharp for this search. You will see 29 fragments of code.
namespace Chutzpah.Models
{
    /// <summary>
    /// Summary of the test cases in one file
    /// </summary>
    public class TestFileSummary : BaseTestCaseSummary
    {
        public TestFileSummary(string path)
        {
            Path = path;
        }

        /// <summary>
        /// The file path the test file summary is for
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// If set, contains the coverage object created during coverage collection.
        /// </summary>
        public CoverageData CoverageObject { get; set; }
    }
}

namespace Chutzpah.Models
{
    /// <summary>
    /// Summary of the test cases in one file
    /// </summary>
    public class TestFileSummary : BaseTestCaseSummary
    {
        public TestFileSummary(string path)
        {
            Path = path;
        }

        /// <summary>
        /// The file path the test file summary is for
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// If set, contains the coverage object created during coverage collection.
        /// </summary>
        public CoverageData CoverageObject { get; set; }
    }
}

namespace Chutzpah.Models
{
    /// <summary>
    /// Summary of the test cases in one file
    /// </summary>
    public class TestFileSummary : BaseTestCaseSummary
    {
        public TestFileSummary(string path)
        {
            Path = path;
            CoverageObject = new CoverageData();
        }

        /// <summary>
        /// The file path the test file summary is for
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// If set, contains the coverage object created during coverage collection.
        /// </summary>
        public CoverageData CoverageObject { get; set; }
    }
}

namespace Chutzpah.Models
{
    /// <summary>
    /// Summary of the test cases in one file
    /// </summary>
    public class TestFileSummary : BaseTestCaseSummary
    {
        public TestFileSummary(string path)
        {
            Path = path;
            CoverageObject = new CoverageData();
        }

        /// <summary>
        /// The file path the test file summary is for
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// If set, contains the coverage object created during coverage collection.
        /// </summary>
        public CoverageData CoverageObject { get; set; }
    }
}

namespace Chutzpah.Models
{
    /// <summary>
    /// Summary of the test cases in one file
    /// </summary>
    public class TestFileSummary : BaseTestCaseSummary
    {
        public TestFileSummary(string path)
        {
            Path = path;
        }

        /// <summary>
        /// The file path the test file summary is for
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// If set, contains the coverage object created during coverage collection.
        /// </summary>
        public CoverageData CoverageObject { get; set; }
    }
}


        /// <summary>
        /// Appends another test case summary into the current instnace.
        /// This will combines the tests, logs and errors collections. This is not thread safe.
        /// </summary>
        /// <param name="summary"></param>
        public void Append(TestFileSummary summary)
        {
            TestFileSummaries.Add(summary);
            AppendTests(summary.Tests);
            AppendLogs(summary.Logs);
            AppendErrors(summary.Errors);
            AppendCoverageData(summary.CoverageObject);
            TimeTaken += summary.TimeTaken;
        }

        internal void AppendCoverageData(CoverageData fileCoverageObject)
        {
            if (fileCoverageObject != null)
            {

                if (CoverageObject == null)
                {
                    CoverageObject = new CoverageData();
                }

                CoverageObject.Merge(fileCoverageObject);

            }
        }

        internal void AppendTests(IEnumerable<TestCase> tests)
        {
            foreach (var test in tests)
            {
                AddTestCase(test);
            }
        }

        internal void AppendLogs(IEnumerable<TestLog> logs)
        {
            Logs = Logs.Concat(logs).ToList();
        }

        internal void AppendErrors(IEnumerable<TestError> errors)
        {
            Errors = Errors.Concat(errors).ToList();
        }

        public void SetTotalRunTime(int timeMs)
        {
            TotalRuntime = timeMs;
        }


        /// <summary>
        /// Appends another test case summary into the current instnace.
        /// This will combines the tests, logs and errors collections. This is not thread safe.
        /// </summary>
        /// <param name="summary"></param>
        public void Append(TestFileSummary summary)
        {
            TestFileSummaries.Add(summary);
            AppendTests(summary.Tests);
            AppendLogs(summary.Logs);
            AppendErrors(summary.Errors);
            AppendCoverageData(summary.CoverageObject);
            TimeTaken += summary.TimeTaken;
        }

        internal void AppendCoverageData(CoverageData fileCoverageObject)
        {
            if (fileCoverageObject != null)
            {
                
                if (CoverageObject == null)
                {
                    CoverageObject = new CoverageData();
                }

                CoverageObject.Merge(fileCoverageObject);

            }
        }

        internal void AppendTests(IEnumerable<TestCase> tests)
        {
            foreach (var test in tests)
            {
                AddTestCase(test);
            }
        }

        internal void AppendLogs(IEnumerable<TestLog> logs)
        {
            Logs = Logs.Concat(logs).ToList();
        }

        internal void AppendErrors(IEnumerable<TestError> errors)
        {
            Errors = Errors.Concat(errors).ToList();
        }

        public void SetTotalRunTime(int timeMs)
        {
            TotalRuntime = timeMs;
        }


        /// <summary>
        /// Appends another test case summary into the current instnace.
        /// This will combines the tests, logs and errors collections. This is not thread safe.
        /// </summary>
        /// <param name="summary"></param>
        public void Append(TestFileSummary summary)
        {
            TestFileSummaries.Add(summary);
            AppendTests(summary.Tests);
            AppendLogs(summary.Logs);
            AppendErrors(summary.Errors);
            AppendCoverageData(summary.CoverageObject);
            TimeTaken += summary.TimeTaken;
        }

        internal void AppendCoverageData(CoverageData fileCoverageObject)
        {
            if (fileCoverageObject != null)
            {
                
                if (CoverageObject == null)
                {
                    CoverageObject = new CoverageData();
                }

                CoverageObject.Merge(fileCoverageObject);

            }
        }

        internal void AppendTests(IEnumerable<TestCase> tests)
        {
            foreach (var test in tests)
            {
                AddTestCase(test);
            }
        }

        internal void AppendLogs(IEnumerable<TestLog> logs)
        {
            Logs = Logs.Concat(logs).ToList();
        }

        internal void AppendErrors(IEnumerable<TestError> errors)
        {
            Errors = Errors.Concat(errors).ToList();
        }

        public void SetTotalRunTime(int timeMs)
        {
            TotalRuntime = timeMs;
        }


        /// <summary>
        /// Appends another test case summary into the current instnace.
        /// This will combines the tests, logs and errors collections. This is not thread safe.
        /// </summary>
        /// <param name="summary"></param>
        public void Append(TestFileSummary summary)
        {
            TestFileSummaries.Add(summary);
            AppendTests(summary.Tests);
            AppendLogs(summary.Logs);
            AppendErrors(summary.Errors);
            AppendCoverageData(summary.CoverageObject);
            TimeTaken += summary.TimeTaken;
        }

        internal void AppendCoverageData(CoverageData fileCoverageObject)
        {
            if (fileCoverageObject != null)
            {

                if (CoverageObject == null)
                {
                    CoverageObject = new CoverageData();
                }

                CoverageObject.Merge(fileCoverageObject);

            }
        }

        internal void AppendTests(IEnumerable<TestCase> tests)
        {
            foreach (var test in tests)
            {
                AddTestCase(test);
            }
        }

        internal void AppendLogs(IEnumerable<TestLog> logs)
        {
            Logs = Logs.Concat(logs).ToList();
        }

        internal void AppendErrors(IEnumerable<TestError> errors)
        {
            Errors = Errors.Concat(errors).ToList();
        }

        public void SetTotalRunTime(int timeMs)
        {
            TotalRuntime = timeMs;
        }

Chutzpah.Models.BaseTestCaseSummary : Object

Methods :

public Dictionary<String, IList<TestCase>> get_TestGroups()
public ReadOnlyCollection<TestCase> get_Tests()
public Void set_Tests(ReadOnlyCollection<TestCase> value = )
public IList<TestLog> get_Logs()
public Void set_Logs(IList<TestLog> value = )
public IList<TestError> get_Errors()
public Void set_Errors(IList<TestError> value = )
public Int32 get_TimeTaken()
public Void set_TimeTaken(Int32 value = )
public Int32 get_TotalRuntime()
public Void set_TotalRuntime(Int32 value = )
public Int32 get_TotalCount()
public Int32 get_PassedCount()
public Int32 get_FailedCount()
public Int32 get_SkippedCount()
public Void AddTestCase(TestCase testCase = )
public Void AddTestCases(IEnumerable<TestCase> testCases = )
public Type GetType()
public String ToString()
public Boolean Equals(Object obj = )
public Int32 GetHashCode()