Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTestStatus = []TestStatus{ TestStatusPassed, TestStatusFailed, TestStatusSkipped, TestStatusRunning, TestStatusPending, TestStatusBroken, TestStatusTimedout, TestStatusInterrupted, }
Functions ¶
This section is empty.
Types ¶
type PageInfo ¶
type PageInfo struct {
// Whether there are more pages
HasNextPage bool `json:"hasNextPage"`
// Total count of items
TotalCount int `json:"totalCount"`
}
Pagination information
type RunStats ¶
type RunStats struct {
// Total number of tests
TotalTests int `json:"totalTests"`
// Number of passed tests
PassedTests int `json:"passedTests"`
// Number of failed tests
FailedTests int `json:"failedTests"`
// Number of skipped tests
SkippedTests int `json:"skippedTests"`
// Total number of steps
TotalSteps int `json:"totalSteps"`
// Latest test execution time
LatestUpdate *time.Time `json:"latestUpdate,omitempty"`
}
Statistics for a test run
type TestCaseConnection ¶ added in v0.2.4
type TestCaseConnection struct {
// List of test case runs
Nodes []*models.Test `json:"nodes"`
// Pagination information
PageInfo *PageInfo `json:"pageInfo"`
}
TestCaseRun connection for pagination
type TestCaseFilter ¶
type TestCaseFilter struct {
// Filter by run ID
RunID *string `json:"runId,omitempty"`
// Filter by status
Status *string `json:"status,omitempty"`
// Search by title (case-insensitive)
TitleContains *string `json:"titleContains,omitempty"`
}
Input for filtering test cases
type TestConnection ¶ added in v0.2.4
type TestConnection = TestCaseConnection
type TestStatus ¶
type TestStatus string
TestStatus represents the status of a test execution
const ( TestStatusPassed TestStatus = "PASSED" TestStatusFailed TestStatus = "FAILED" TestStatusSkipped TestStatus = "SKIPPED" TestStatusRunning TestStatus = "RUNNING" TestStatusPending TestStatus = "PENDING" TestStatusBroken TestStatus = "BROKEN" TestStatusTimedout TestStatus = "TIMEDOUT" TestStatusInterrupted TestStatus = "INTERRUPTED" )
func (TestStatus) IsValid ¶
func (e TestStatus) IsValid() bool
func (TestStatus) MarshalGQL ¶
func (e TestStatus) MarshalGQL(w io.Writer)
func (TestStatus) MarshalJSON ¶
func (e TestStatus) MarshalJSON() ([]byte, error)
func (TestStatus) String ¶
func (e TestStatus) String() string
func (*TestStatus) UnmarshalGQL ¶
func (e *TestStatus) UnmarshalGQL(v any) error
func (*TestStatus) UnmarshalJSON ¶
func (e *TestStatus) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.