-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added config option for "test all contracts" (#102)
* Added config option to filter "test all contracts", indicating whether contracts not in the deployment order (dynamically deployed contracts) should be tested * Changed config to default to only testing DeploymentOrder contracts
- Loading branch information
Showing
7 changed files
with
131 additions
and
35 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// TestContract deploys a TestContractChild on construction, both containing failing assertion and property tests, | ||
// to ensure that the project configuration surrounding the "test all contracts" feature works as expected for | ||
// dynamically deployed contracts. | ||
contract TestContractChild { | ||
function failing_assertion_method_child(uint x) public { | ||
assert(false); | ||
} | ||
|
||
function fuzz_failing_property_test_method_child() public view returns (bool) { | ||
return false; | ||
} | ||
} | ||
|
||
contract TestContract { | ||
address a; | ||
|
||
constructor() public { | ||
a = address(new TestContractChild()); | ||
} | ||
|
||
function failing_assertion_method(uint x) public { | ||
assert(false); | ||
} | ||
|
||
function fuzz_failing_property_test_method() public view returns (bool) { | ||
return false; | ||
} | ||
} |