testcases

package
v0.0.0-...-91260e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffReport

type DiffReport struct {
	Claim1ResultsSummary TcResultsSummary `json:"claimFile1ResultsSummary"`
	Claim2ResultsSummary TcResultsSummary `json:"claimFile2ResultsSummary"`

	TestCases                 []TcResultDifference `json:"resultsDifferences"`
	DifferentTestCasesResults int                  `json:"differentTestCasesResults"`
}

Holds the results summary and the list of test cases whose result is different.

func GetDiffReport

func GetDiffReport(resultsClaim1, resultsClaim2 claim.TestSuiteResults) *DiffReport

Process the results from different claim files and return the DiffReport. In case one tc name does not exist in the other claim file, the result will be marked as "not found" in the table.

func (*DiffReport) String

func (r *DiffReport) String() string

Stringer method for the DiffReport. Will return a string with two tables: Test cases summary table: STATUS # in CLAIM-1 # in CLAIM-2 passed 22 21 skipped 62 62 failed 3 4

Test cases with different results table: TEST CASE NAME CLAIM-1 CLAIM-2 access-control-net-admin-capability-check failed passed access-control-pod-automount-service-account-token passed failed access-control-pod-role-bindings passed failed access-control-pod-service-account passed failed ...

type TcResultDifference

type TcResultDifference struct {
	Name         string
	Claim1Result string
	Claim2Result string
}

type TcResultsSummary

type TcResultsSummary struct {
	Passed  int
	Skipped int
	Failed  int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL