More integration test fixes (#1889)

This commit is contained in:
Josh Mock
2023-05-30 13:11:28 -05:00
committed by GitHub
parent 10039d9b8f
commit 5c4c29f51c
10 changed files with 43 additions and 18 deletions

View File

@ -73,13 +73,14 @@ function createJunitReporter () {
}
function createTestCase (testcaseList) {
return function testcase (name) {
return function testcase (name, file) {
assert(name, 'The testcase name is required')
const startTime = Date.now()
const tcase = {
'@id': new Date().toISOString(),
'@name': name
}
if (file) tcase['@file'] = file
testcaseList.push(tcase)
return {
failure (error) {