-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds functional (typescript) tests for Eth RPC (#74)
* Adds functional (typescript) tests for Eth RPC * Adds not supported for compilers rpc methods * Adds tests for compilers, estimateGas and contract * Fix formatting * Adds more tests * Use editorconfig instead of prettier for TS * Adds test for gas recomputation * Adds log documentation for ts tests * More tests + formatting * draft for CI functional test integration * Better support for nodejs in rust CI * testing CI integration for NodeJs
- Loading branch information
Showing
31 changed files
with
5,582 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
**/target/ | ||
**/node_modules/ | ||
**/*.rs.bk | ||
*.swp | ||
.wasm-binaries | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,2 @@ | ||
node_modules/ | ||
frontier-test-tmp |
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,30 @@ | ||
# Functional testing for Substrate Frontier Node RPC | ||
|
||
This folder contains a set of functional tests desgined to perform functional testing on the Frontier Eth RPC. | ||
|
||
It is written in typescript, using Mocha/Chai as Test framework. | ||
|
||
## Test flow | ||
|
||
Tests are separated depending of their genesis requirements. | ||
Each group will start a [frontier test node](frontier-test-node) with a given [spec](substrate-specs) before executing the tests. | ||
|
||
## Installation | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
## Run the tests | ||
|
||
``` | ||
npm run test | ||
``` | ||
|
||
You can also add the Frontier Node logs to the output using the `FRONTIER_LOG` env variable. Ex: | ||
|
||
``` | ||
FRONTIER_LOG="warn,rpc=trace" npm run test | ||
``` | ||
|
||
(The frontier node be listening for RPC on port 19933, mostly to avoid conflict with already running substrate node) |
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,3 @@ | ||
# Substrate Frontier Node for functional testing | ||
|
||
**Warning**: This node is only used to run tests. |
Oops, something went wrong.