good morning!!!!

Skip to content
Snippets Groups Projects
tester.go 321 B
Newer Older
Garet Halliday's avatar
Garet Halliday committed
package test

type Tester struct {
	config Config
}

func NewTester(config Config) *Tester {
	return &Tester{
		config: config,
	}
}

Garet Halliday's avatar
Garet Halliday committed
func (T *Tester) Run(tests ...Test) error {
	for _, test := range tests {
Garet Halliday's avatar
Garet Halliday committed
		runner := MakeRunner(T.config, test)
		if err := runner.Run(); err != nil {
Garet Halliday's avatar
Garet Halliday committed
			return err
		}
	}
	return nil
}