Commit 36f76864 authored by aniket-engg's avatar aniket-engg Committed by Aniket

show logs for methods not having any assert

parent 613beb55
......@@ -278,6 +278,8 @@ module.exports = class TestTab extends ViewPlugin {
</div>
`)
}
} else if (result.type === 'logOnly') {
if (result.hhLogs && result.hhLogs.length) this.printHHLogs(result.hhLogs, result.value)
}
}
......
......@@ -338,6 +338,17 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
testCallback(undefined, resp)
passingNum += 1
timePassed += time
} else if (hhLogs) {
const resp: TestResultInterface = {
type: 'logOnly',
value: changeCase.sentenceCase(func.name),
filename: testObject.filename,
time: time,
context: testName,
hhLogs
}
testCallback(undefined, resp)
timePassed += time
}
return next()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment