Documentation
¶
Index ¶
- func Run(ctx context.Context, reporter *SSEReporter, opts ...Option) error
- type File
- type Option
- type RerunRequest
- type SSEMessage
- type SSEReporter
- func (r *SSEReporter) Info(info reporter.Info)
- func (r *SSEReporter) RemoveFile(name string)
- func (r *SSEReporter) ReportError(err *reporter.Error)
- func (r *SSEReporter) RequestRerun(filename string)
- func (r *SSEReporter) RerunChannel() <-chan RerunRequest
- func (r *SSEReporter) RunFile(ctx context.Context, filename string, fn func(reporter.Reporter))
- func (r *SSEReporter) RunTest(ctx context.Context, runner, name string, fn func(reporter.Reporter))
- type Test
- type TestError
- type TestInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type RerunRequest ¶
type RerunRequest struct {
Filename string
}
RerunRequest represents a request to rerun a test file
type SSEMessage ¶
type SSEReporter ¶
type SSEReporter struct {
// contains filtered or unexported fields
}
func NewSSEReporter ¶
func NewSSEReporter(dir string) *SSEReporter
func (*SSEReporter) Info ¶
func (r *SSEReporter) Info(info reporter.Info)
func (*SSEReporter) RemoveFile ¶
func (r *SSEReporter) RemoveFile(name string)
func (*SSEReporter) ReportError ¶
func (r *SSEReporter) ReportError(err *reporter.Error)
func (*SSEReporter) RequestRerun ¶
func (r *SSEReporter) RequestRerun(filename string)
RequestRerun sends a rerun request for the given filename
func (*SSEReporter) RerunChannel ¶
func (r *SSEReporter) RerunChannel() <-chan RerunRequest
RerunChannel returns the channel for rerun requests
type Test ¶
Click to show internal directories.
Click to hide internal directories.