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

UiPath / uipathcli / 14445806829

14 Apr 2025 12:37PM UTC coverage: 89.947% (-0.1%) from 90.047%
14445806829

Pull #171

github

thschmitt
Extend test run command to support JUnit and retrieve robot logs

Added two new parameters to the `uipath studio test run` command:

- `results-output`: defaults to `uipath` and also supports `junit`
  to generate a JUnit test result XML report

- `attach-robot-logs`: When enabled, retrieves the robot logs for each
  test case
Pull Request #171: Extend test run command to support JUnit and retrieve robot logs

397 of 445 new or added lines in 13 files covered. (89.21%)

1 existing line in 1 file now uncovered.

6505 of 7232 relevant lines covered (89.95%)

1.01 hits per line

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

93.55
/utils/api/test_execution.go
1
package api
2

3
import "time"
4

5
type TestExecution struct {
6
        Id                 int
7
        Status             string
8
        TestSetId          int
9
        Name               string
10
        StartTime          time.Time
11
        EndTime            time.Time
12
        TestCasesCount     int
13
        PassedCount        int
14
        FailuresCount      int
15
        CanceledCount      int
16
        TestCaseExecutions []TestCaseExecution
17
}
18

19
func NewTestExecution(
20
        id int,
21
        status string,
22
        testSetId int,
23
        name string,
24
        startTime time.Time,
25
        endTime time.Time,
26
        testCaseExecutions []TestCaseExecution) *TestExecution {
1✔
27
        testCasesCount := 0
1✔
28
        passedCount := 0
1✔
29
        failuresCount := 0
1✔
30
        canceledCount := 0
1✔
31

1✔
32
        for _, execution := range testCaseExecutions {
2✔
33
                testCasesCount++
1✔
34
                if execution.Status == "Passed" {
2✔
35
                        passedCount++
1✔
36
                } else if execution.Status == "Failed" {
3✔
37
                        failuresCount++
1✔
38
                } else if execution.Status == "Cancelling" || execution.Status == "Cancelled" {
2✔
NEW
39
                        canceledCount++
×
NEW
40
                }
×
41
        }
42

43
        return &TestExecution{
1✔
44
                id,
1✔
45
                status,
1✔
46
                testSetId,
1✔
47
                name,
1✔
48
                startTime,
1✔
49
                endTime,
1✔
50
                testCasesCount,
1✔
51
                passedCount,
1✔
52
                failuresCount,
1✔
53
                canceledCount,
1✔
54
                testCaseExecutions,
1✔
55
        }
1✔
56
}
57

58
func (e TestExecution) IsCompleted() bool {
1✔
59
        return e.Status == "Passed" || e.Status == "Failed" || e.Status == "Cancelled"
1✔
60
}
1✔
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