show logs for methods not having any assert

pull/1533/head^2
aniket-engg 3 years ago committed by Aniket
parent 613beb555a
commit 36f768645f
  1. 2
      apps/remix-ide/src/app/tabs/test-tab.js
  2. 11
      libs/remix-tests/src/testRunner.ts

@ -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()

Loading…
Cancel
Save