-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up test suites with OZ and fix intermittent issues on CI (#255)
Truffle tests are taking about 30-40 minutes to complete on CI, this PR introduces the OZ test-environment lib to enhance the test suites and speed up the testing process. The tests are now taking about 3-4 minutes to complete on Github CI. Signed-off-by: Felipe Forbeck <[email protected]> Co-authored-by: David Roon <[email protected]>
- Loading branch information
Showing
38 changed files
with
32,989 additions
and
39,046 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,12 @@ | ||
module.exports = { | ||
norpc: false, | ||
compileCommand: "truffle compile", | ||
testCommand: | ||
"export ETHEREUM_RPC_PORT=8555 && truffle test --network coverage --timeout 10000", | ||
skipFiles: [ | ||
// Skip config contracts | ||
"Migration", | ||
// Skip Test Contracts | ||
"test/OLToken", | ||
"test/PixelNFT", | ||
"test/TestFairShareCalc", | ||
"test/TestToken1", | ||
"test/TestToken2", | ||
// Skip openzeppelin contracts | ||
"utils/ERC20", | ||
"utils/IERC20", | ||
"ERC721", | ||
"IERC721", | ||
"IERC721Receiver", | ||
"IERC721Enumerable", | ||
"IERC721Metadata", | ||
"Address", | ||
"Context", | ||
"Counters", | ||
"Strings", | ||
"ERC165", | ||
"IERC165", | ||
"EnumerableSet", | ||
], | ||
norpc: true, | ||
testCommand: "npm test", | ||
compileCommand: "npm run compile", | ||
providerOptions: { | ||
default_balance_ether: "10000000000000000000000000", | ||
}, | ||
mocha: { | ||
fgrep: "[skip-on-coverage]", // tag to skip tests | ||
invert: true, | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
node_modules/ | ||
contracts/test | ||
contracts/test/ | ||
contracts/Migrations.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
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
Oops, something went wrong.