-
Notifications
You must be signed in to change notification settings - Fork 384
Typescript test refactoring #364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
d306e78
Crude attempt at finding open ports
notlesh 9af4a89
npx -w
notlesh 5cf37a0
Add missing file
notlesh 1f80688
Adds random port and parallel test execution
b193e1f
Fixed ethers test
1614a49
Adds delay to node start in test
2e852ea
Merge remote-tracking branch 'origin/master' into notlesh-find-open-p…
1384de8
Adds support for test watch
4b3a85d
Merge branch 'testweek' into crystalin-testweek-watch
1c8e09f
Cleaned package.json
ffc5135
Prevent test to run at start of watch
78552d8
Restore optimization for cargo build
67c971b
Allow for non-finalization and ParentHash specification in createAndF…
girazoki 9bf2d45
Make test-block tests non-dependent by using non-finalized chains
girazoki 165c1c1
Separate tests to make them non-dependent and parametrize tx hashes a…
girazoki 5a1492e
it instead of step in test-version
girazoki 7836dc6
setup providers before tests in test-ethers.ts
girazoki 51ee9c4
Create a block before tests to avoid one depend on the other in test-…
girazoki b1d8f02
it for step in test-receipt
girazoki 22b2077
import constants for test-staking
girazoki 2c9e87e
Attemp at parametrizing test-filter-api tests
girazoki b2121eb
attemp at parametrizing test-revert-receipt
girazoki adaa05e
remove mocha-steps from tests
girazoki f083dd6
make test-subscription tests non-dependent
girazoki aa65135
comply with prettier
girazoki 0752113
Add support for retrieving the hash of the generated block
girazoki a3bae77
Make test-trace-filter tests non-dependent
girazoki 9b5d3b6
balance-tests non-dependent
girazoki 61e78aa
Non-dependent tests for test-polkadot-api
girazoki 42e79b9
Add test-fork-chain tests
girazoki 074891e
Merge branch 'testweek' into gorka_remove_intra_test_dependencies
0a046f4
remove unnecesary timeouts
girazoki 34607b5
Use context provider for test-ether.ts
girazoki 8db05cf
Remove currentId from test-filter-api since we are uninstalling all f…
girazoki 9cb5a43
Join balance test setups and check balance at each block
girazoki 1a54e7d
Rename variables to camelCase in tests
girazoki 5786d28
small introduced bug in test-pool-pending when camelCasing variables
girazoki b65f6d5
Use a different account for test-revert-receipt deployment contract t…
girazoki 0876554
shorten line because of editconfig
girazoki 66f3f6c
Separate test-subscription and test-subscription-past-events.ts
girazoki 0e923fe
remove single letter variable in test-filter-api
girazoki 611df42
Small cosmetic changes
girazoki 6ee7e5a
revert changes in package.json
girazoki 4305984
Remove beforeEach and substitute it for common function
girazoki 5870a7b
change var for let or const
girazoki 6ecef94
Merge branch 'testweek' into gorka_remove_intra_test_dependencies
8ecddf9
Removes solc from tests
1525e88
Fixes path for contract tests
5e8ec5b
Adds formatting for compiled contracts
c047861
Merge remote-tracking branch 'origin/testweek' into crystalin-remove-…
fc2a7af
Refactor tests
339bbf6
Fix formatting
51badda
Limit concurrency to half cpus for ts tests
0019667
Fixes github action typo
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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,176 @@ | ||
| { | ||
| "byteCode": "0x6080604052348015600f57600080fd5b506000601a57600080fd5b603f8060276000396000f3fe6080604052600080fdfea26469706673582212207b68e132fa347c6e3b45db840e591ea6fac483da22d192aabb59494b63a4c1a564736f6c63430008030033", | ||
| "contract": { | ||
| "abi": [ | ||
| { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" } | ||
| ], | ||
| "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, | ||
| "evm": { | ||
| "assembly": " /* \"main.sol\":39:137 contract FailContract {... */\n mstore(0x40, 0x80)\n /* \"main.sol\":71:131 constructor() public {... */\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\ntag_1:\n pop\n /* \"main.sol\":114:119 false */\n 0x00\n /* \"main.sol\":106:120 require(false) */\n tag_4\n jumpi\n 0x00\n dup1\n revert\ntag_4:\n /* \"main.sol\":39:137 contract FailContract {... */\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x00\n codecopy\n 0x00\n return\nstop\n\nsub_0: assembly {\n /* \"main.sol\":39:137 contract FailContract {... */\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa26469706673582212207b68e132fa347c6e3b45db840e591ea6fac483da22d192aabb59494b63a4c1a564736f6c63430008030033\n}\n", | ||
| "bytecode": { | ||
| "generatedSources": [], | ||
| "linkReferences": {}, | ||
| "object": "6080604052348015600f57600080fd5b506000601a57600080fd5b603f8060276000396000f3fe6080604052600080fdfea26469706673582212207b68e132fa347c6e3b45db840e591ea6fac483da22d192aabb59494b63a4c1a564736f6c63430008030033", | ||
| "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x0 PUSH1 0x1A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x3F DUP1 PUSH1 0x27 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH28 0x68E132FA347C6E3B45DB840E591EA6FAC483DA22D192AABB59494B63 LOG4 0xC1 0xA5 PUSH5 0x736F6C6343 STOP ADDMOD SUB STOP CALLER ", | ||
| "sourceMap": "39:98:0:-:0;;;71:60;;;;;;;;;;114:5;106:14;;;;;;39:98;;;;;;" | ||
| }, | ||
| "deployedBytecode": { | ||
| "generatedSources": [], | ||
| "immutableReferences": {}, | ||
| "linkReferences": {}, | ||
| "object": "6080604052600080fdfea26469706673582212207b68e132fa347c6e3b45db840e591ea6fac483da22d192aabb59494b63a4c1a564736f6c63430008030033", | ||
| "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH28 0x68E132FA347C6E3B45DB840E591EA6FAC483DA22D192AABB59494B63 LOG4 0xC1 0xA5 PUSH5 0x736F6C6343 STOP ADDMOD SUB STOP CALLER ", | ||
| "sourceMap": "39:98:0:-:0;;;;;" | ||
| }, | ||
| "gasEstimates": { | ||
| "creation": { | ||
| "codeDepositCost": "12600", | ||
| "executionCost": "64", | ||
| "totalCost": "12664" | ||
| } | ||
| }, | ||
| "legacyAssembly": { | ||
| ".code": [ | ||
| { | ||
| "begin": 39, | ||
| "end": 137, | ||
| "name": "PUSH", | ||
| "source": 0, | ||
| "value": "80" | ||
| }, | ||
| { | ||
| "begin": 39, | ||
| "end": 137, | ||
| "name": "PUSH", | ||
| "source": 0, | ||
| "value": "40" | ||
| }, | ||
| { "begin": 39, "end": 137, "name": "MSTORE", "source": 0 }, | ||
| { "begin": 71, "end": 131, "name": "CALLVALUE", "source": 0 }, | ||
| { "begin": 71, "end": 131, "name": "DUP1", "source": 0 }, | ||
| { "begin": 71, "end": 131, "name": "ISZERO", "source": 0 }, | ||
| { | ||
| "begin": 71, | ||
| "end": 131, | ||
| "name": "PUSH [tag]", | ||
| "source": 0, | ||
| "value": "1" | ||
| }, | ||
| { "begin": 71, "end": 131, "name": "JUMPI", "source": 0 }, | ||
| { | ||
| "begin": 71, | ||
| "end": 131, | ||
| "name": "PUSH", | ||
| "source": 0, | ||
| "value": "0" | ||
| }, | ||
| { "begin": 71, "end": 131, "name": "DUP1", "source": 0 }, | ||
| { "begin": 71, "end": 131, "name": "REVERT", "source": 0 }, | ||
| { "begin": 71, "end": 131, "name": "tag", "source": 0, "value": "1" }, | ||
| { "begin": 71, "end": 131, "name": "JUMPDEST", "source": 0 }, | ||
| { "begin": 71, "end": 131, "name": "POP", "source": 0 }, | ||
| { | ||
| "begin": 114, | ||
| "end": 119, | ||
| "name": "PUSH", | ||
| "source": 0, | ||
| "value": "0" | ||
| }, | ||
| { | ||
| "begin": 106, | ||
| "end": 120, | ||
| "name": "PUSH [tag]", | ||
| "source": 0, | ||
| "value": "4" | ||
| }, | ||
| { "begin": 106, "end": 120, "name": "JUMPI", "source": 0 }, | ||
| { | ||
| "begin": 106, | ||
| "end": 120, | ||
| "name": "PUSH", | ||
| "source": 0, | ||
| "value": "0" | ||
| }, | ||
| { "begin": 106, "end": 120, "name": "DUP1", "source": 0 }, | ||
| { "begin": 106, "end": 120, "name": "REVERT", "source": 0 }, | ||
| { | ||
| "begin": 106, | ||
| "end": 120, | ||
| "name": "tag", | ||
| "source": 0, | ||
| "value": "4" | ||
| }, | ||
| { "begin": 106, "end": 120, "name": "JUMPDEST", "source": 0 }, | ||
| { | ||
| "begin": 39, | ||
| "end": 137, | ||
| "name": "PUSH #[$]", | ||
| "source": 0, | ||
| "value": "0000000000000000000000000000000000000000000000000000000000000000" | ||
| }, | ||
| { "begin": 39, "end": 137, "name": "DUP1", "source": 0 }, | ||
| { | ||
| "begin": 39, | ||
| "end": 137, | ||
| "name": "PUSH [$]", | ||
| "source": 0, | ||
| "value": "0000000000000000000000000000000000000000000000000000000000000000" | ||
| }, | ||
| { | ||
| "begin": 39, | ||
| "end": 137, | ||
| "name": "PUSH", | ||
| "source": 0, | ||
| "value": "0" | ||
| }, | ||
| { "begin": 39, "end": 137, "name": "CODECOPY", "source": 0 }, | ||
| { | ||
| "begin": 39, | ||
| "end": 137, | ||
| "name": "PUSH", | ||
| "source": 0, | ||
| "value": "0" | ||
| }, | ||
| { "begin": 39, "end": 137, "name": "RETURN", "source": 0 } | ||
| ], | ||
| ".data": { | ||
| "0": { | ||
| ".auxdata": "a26469706673582212207b68e132fa347c6e3b45db840e591ea6fac483da22d192aabb59494b63a4c1a564736f6c63430008030033", | ||
| ".code": [ | ||
| { | ||
| "begin": 39, | ||
| "end": 137, | ||
| "name": "PUSH", | ||
| "source": 0, | ||
| "value": "80" | ||
| }, | ||
| { | ||
| "begin": 39, | ||
| "end": 137, | ||
| "name": "PUSH", | ||
| "source": 0, | ||
| "value": "40" | ||
| }, | ||
| { "begin": 39, "end": 137, "name": "MSTORE", "source": 0 }, | ||
| { | ||
| "begin": 39, | ||
| "end": 137, | ||
| "name": "PUSH", | ||
| "source": 0, | ||
| "value": "0" | ||
| }, | ||
| { "begin": 39, "end": 137, "name": "DUP1", "source": 0 }, | ||
| { "begin": 39, "end": 137, "name": "REVERT", "source": 0 } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "methodIdentifiers": {} | ||
| }, | ||
| "ewasm": { "wasm": "" }, | ||
| "metadata": "{\"compiler\":{\"version\":\"0.8.3+commit.8d00100c\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"main.sol\":\"FailContract\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"main.sol\":{\"keccak256\":\"0x4de9ab93b7ba7a82d8e58a903a5a297b8a8dc5263369657b062496782a5a51e9\",\"urls\":[\"bzz-raw://70e08b1c0fff16d5982491d2b46221465b0094cd251f991786aa1ca409f6c431\",\"dweb:/ipfs/QmVc7Qm8cNSUa4CrQhPtuSUJndczcDARrLoYc4z1CCuJ3m\"]}},\"version\":1}", | ||
| "storageLayout": { "storage": [], "types": null }, | ||
| "userdoc": { "kind": "user", "methods": {}, "version": 1 } | ||
| }, | ||
| "sourceCode": "\n pragma solidity >=0.8.0;\n \n contract FailContract {\n constructor() public {\n require(false);\n }\n }" | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment would be nice here. Is this detecting the number of cpus available and allocating half of them to the tests?