blob: be0361b241d0d100e1fc5d5ee23d464bb150dcf5 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Package testrunner handles specifics related to the testrunner tool.
package testrunner
import (
"time"
"go.fuchsia.dev/fuchsia/tools/testing/runtests"
"go.fuchsia.dev/fuchsia/tools/testing/testparser"
)
// TestResult is the result of executing a test.
type TestResult struct {
// Name is the name of the test that was executed.
Name string
// GNLabel is the label (with toolchain) for the test target.
GNLabel string
// Result describes whether the test passed or failed.
Result runtests.TestResult
// Cases describes individual test cases.
Cases []testparser.TestCaseResult
// DataSinks gives the data sinks attached to a test.
DataSinks runtests.DataSinkReference
// RunIndex is the index of this test run among all the runs of the same test.
RunIndex int
// The combined stdout and stderr from this test.
Stdio []byte
StartTime time.Time
EndTime time.Time
}