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 { ...@@ -278,6 +278,8 @@ module.exports = class TestTab extends ViewPlugin {
</div> </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 ...@@ -338,6 +338,17 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
testCallback(undefined, resp) testCallback(undefined, resp)
passingNum += 1 passingNum += 1
timePassed += time 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() 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