mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-09 23:33:46 -05:00
gtr: Add support for pause/continue tests
This commit is contained in:
@ -58,6 +58,14 @@ func (b *ReportBuilder) CreateTest(name string) {
|
||||
b.tests[b.newId()] = Test{Name: name}
|
||||
}
|
||||
|
||||
func (b *ReportBuilder) PauseTest(name string) {
|
||||
b.lastId = 0
|
||||
}
|
||||
|
||||
func (b *ReportBuilder) ContinueTest(name string) {
|
||||
b.lastId = b.findTest(name)
|
||||
}
|
||||
|
||||
func (b *ReportBuilder) EndTest(name, result string, duration time.Duration) {
|
||||
id := b.findTest(name)
|
||||
b.lastId = id
|
||||
|
Reference in New Issue
Block a user