feat: log transaction when running tests

This commit is contained in:
debugtalk
2021-12-08 11:12:02 +08:00
parent d0fb750c51
commit f7fc28bc53
5 changed files with 41 additions and 1 deletions

View File

@@ -116,6 +116,10 @@ func (tc *TCase) ToTestCase() (*TestCase, error) {
testCase.TestSteps = append(testCase.TestSteps, &stepTestCaseWithOptionalArgs{
step: step,
})
} else if step.Transaction != nil {
testCase.TestSteps = append(testCase.TestSteps, &stepTransaction{
step: step,
})
} else {
log.Warn().Interface("step", step).Msg("[convertTestCase] unexpected step")
}