-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add command option to specify the source files to run the coverage on (…
- Loading branch information
Showing
7 changed files
with
117 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/integration/projects/test-files/contracts/otherContracts/OtherContractA.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
pragma solidity ^0.7.0; | ||
|
||
|
||
contract OtherContractA { | ||
uint x; | ||
constructor() public { | ||
} | ||
|
||
function sendFn() public { | ||
x = 5; | ||
} | ||
|
||
function callFn() public pure returns (uint){ | ||
uint y = 5; | ||
return y; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
test/integration/projects/test-files/test/other_contract_a.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const OtherContractA = artifacts.require("OtherContractA"); | ||
|
||
contract("otherContractA", function(accounts) { | ||
let instance; | ||
|
||
before(async () => instance = await OtherContractA.new()) | ||
|
||
it('sends', async function(){ | ||
await instance.sendFn(); | ||
}); | ||
|
||
it('calls', async function(){ | ||
await instance.callFn(); | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters