• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MeindertN / RoboClerk / 19481929392

18 Nov 2025 10:05PM UTC coverage: 72.65% (+0.3%) from 72.366%
19481929392

push

github

MeindertN
Fixed failing test

2217 of 3233 branches covered (68.57%)

Branch coverage included in aggregate %.

4 of 4 new or added lines in 1 file covered. (100.0%)

526 existing lines in 15 files now uncovered.

6894 of 9308 relevant lines covered (74.07%)

96.09 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.71
/RoboClerk.Core/Items/SoftwareSystemTestItem.cs
1
using System;
2
using System.Collections.Generic;
3

4
namespace RoboClerk
5
{
6
    public class SoftwareSystemTestItem : LinkedItem
7
    {
8
        private string testCaseState = string.Empty;
166✔
9
        private string testCaseDescription = string.Empty;
166✔
10
        private bool testCaseAutomated = false;
166✔
11
        private bool testCaseToUnitTest = false;
166✔
12
        private List<TestStep> testCaseSteps = new List<TestStep>();
166✔
13

14
        public SoftwareSystemTestItem()
166✔
15
        {
166✔
16
            type = "SoftwareSystemTest";
166✔
17
            id = Guid.NewGuid().ToString();
166✔
18
        }
166✔
19

20
        public string TestCaseState
21
        {
22
            get => testCaseState;
59✔
23
            set => testCaseState = value;
30✔
24
        }
25

26
        public string TestCaseDescription
27
        {
28
            get => testCaseDescription;
64✔
29
            set => testCaseDescription = value;
45✔
30
        }
31

32
        public IEnumerable<TestStep> TestCaseSteps
33
        {
34
            get => testCaseSteps;
66✔
35
        }
36

37
        public bool TestCaseAutomated
38
        {
39
            get => testCaseAutomated;
86✔
40
            set => testCaseAutomated = value;
67✔
41
        }
42

43
        public bool TestCaseToUnitTest
44
        {
45
            get => testCaseToUnitTest;
73✔
46
            set => testCaseToUnitTest = value;
29✔
47
        }
48

49
        public void AddTestCaseStep(TestStep step)
50
        {
74✔
51
            testCaseSteps.Add(step);
74✔
52
        }
74✔
53

54
        public void ClearTestCaseSteps()
55
        {
1✔
56
            testCaseSteps.Clear();
1✔
57
        }
1✔
58

59
        public void KickToUnitTest(string id)
60
        {
2✔
61
            if (id != null && id.Length > 0)
2!
62
            {
2✔
63
                testCaseToUnitTest = true;
2✔
64
                linkedItems.Add(new ItemLink(id, ItemLinkType.UnitTest));
2✔
65
            }
2✔
66
        }
2✔
67

68
        static public List<TestStep> GetTestSteps(string testDescription)
69
        {
7✔
70
            string[] lines = testDescription.Split('\n');
7✔
71
            List<TestStep> output = new List<TestStep>();
7✔
72
            bool thenFound = false;
7✔
73
            foreach (var line in lines)
73✔
74
            {
26✔
75
                if (string.IsNullOrWhiteSpace(line))
26!
UNCOV
76
                {
×
UNCOV
77
                    continue; //skip empty lines
×
78
                }
79
                if (!line.ToUpper().Contains("THEN:") && !thenFound)
26✔
80
                {
19✔
81
                    output.Add(new TestStep((output.Count + 1).ToString(), line, string.Empty));
19✔
82
                }
19✔
83
                else
84
                {
7✔
85
                    if (!thenFound)
7✔
86
                    {
6✔
87
                        thenFound = true;
6✔
88
                        output[output.Count - 1].ExpectedResult = line;
6✔
89
                    }
6✔
90
                    else if (line.ToUpper().Contains("WHEN:"))
1!
UNCOV
91
                    {
×
UNCOV
92
                        output.Add(new TestStep((output.Count + 1).ToString(), line, string.Empty));
×
UNCOV
93
                        thenFound = false;
×
UNCOV
94
                    }
×
95
                    else if (!line.ToUpper().Contains("AND:"))
1!
UNCOV
96
                    {
×
UNCOV
97
                        output[output.Count - 1].ExpectedResult = output[output.Count - 1].ExpectedResult + '\n' + line;
×
UNCOV
98
                    }
×
99
                    else
100
                    {
1✔
101
                        output.Add(new TestStep((output.Count + 1).ToString(), string.Empty, line));
1✔
102
                    }
1✔
103
                }
7✔
104
            }
26✔
105
            return output;
7✔
106
        }
7✔
107
    }
108
}
109

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc