|
|
|
@ -16,7 +16,7 @@ const TestTabLogic = require('./testTab/testTab') |
|
|
|
|
const profile = { |
|
|
|
|
name: 'solidityUnitTesting', |
|
|
|
|
displayName: 'Solidity unit testing', |
|
|
|
|
methods: ['testFromPath', 'testFromSource', 'setTestFolderPath'], |
|
|
|
|
methods: ['testFromPath', 'testFromSource', 'setTestFolderPath', 'getTestlibs'], |
|
|
|
|
events: [], |
|
|
|
|
icon: 'assets/img/unitTesting.webp', |
|
|
|
|
description: 'Fast tool to generate unit tests for your contracts', |
|
|
|
@ -74,6 +74,10 @@ module.exports = class TestTab extends ViewPlugin { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getTestlibs() { |
|
|
|
|
return { assertLibCode, accountsLibCode: this.testRunner.accountsLibCode} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async onActivation () { |
|
|
|
|
const isSolidityActive = await this.call('manager', 'isActive', 'solidity') |
|
|
|
|
if (!isSolidityActive) { |
|
|
|
|