Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Ignored = "ignored" Passed = "passed" Failed = "failed" Panicked = "panicked" BuildFailure = "build failure" NoTestFiles = "no test files" NoTestFunctions = "no test functions" NoGoFiles = "no go code" )
Functions ¶
This section is empty.
Types ¶
type CompleteOutput ¶
type CompleteOutput struct { Packages []*PackageResult Revision string }
type Executor ¶
type Executor interface { ExecuteTests([]*Package) *CompleteOutput Status() string }
type FileSystem ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitor ¶
func (*Monitor) ScanForever ¶
func (self *Monitor) ScanForever()
type Package ¶
type Package struct { Active bool Path string Name string Error error Output string Result *PackageResult }
func NewPackage ¶
type PackageResult ¶
type PackageResult struct { PackageName string Elapsed float64 Coverage float64 Outcome string BuildOutput string TestResults []TestResult }
func NewPackageResult ¶
func NewPackageResult(packageName string) *PackageResult
type Server ¶
type Server interface { ReceiveUpdate(*CompleteOutput) Watch(writer http.ResponseWriter, request *http.Request) Ignore(writer http.ResponseWriter, request *http.Request) Reinstate(writer http.ResponseWriter, request *http.Request) Status(writer http.ResponseWriter, request *http.Request) LongPollStatus(writer http.ResponseWriter, request *http.Request) Results(writer http.ResponseWriter, request *http.Request) Execute(writer http.ResponseWriter, request *http.Request) }
type TestResult ¶
type TestResult struct { TestName string Elapsed float64 Passed bool Skipped bool File string Line int Message string Error string Stories []reporting.ScopeResult RawLines []string `json:",omitempty"` }
func NewTestResult ¶
func NewTestResult(testName string) *TestResult
Click to show internal directories.
Click to hide internal directories.