mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-06 22:12:51 -05:00
parser/gotest: Handle test output logging
This commit is contained in:
@ -115,10 +115,15 @@ func (p *parser) summary(result, name, duration string) {
|
||||
}
|
||||
|
||||
func (p *parser) output(line string) {
|
||||
// TODO: Count indentations, however don't assume every tab is an indentation
|
||||
var indent int
|
||||
for indent = 0; strings.HasPrefix(line, "\t"); indent++ {
|
||||
line = line[1:]
|
||||
}
|
||||
p.add(Event{
|
||||
Type: "output",
|
||||
Data: line,
|
||||
Indent: 0, // TODO
|
||||
Indent: indent,
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user