solution: make sure eth_call works with block ref and error response

This commit is contained in:
Igor Artamonov
2021-03-16 17:12:03 -04:00
parent 34c66484f5
commit c3f0f1f589
3 changed files with 63 additions and 0 deletions

41
testing/README.adoc Normal file
View File

@@ -0,0 +1,41 @@
= Dshackle Integration Testing
Test for a correct work using a simulation of different upstream behaviours and checking the Dshackle against it.
.Modules:
- `dshackle` - Dshackle config used for testing environment
- `simple-upstream` - upstream simulator with predefines responses
- `trial` - actual tests
== How to run
NOTE: Run commands in project's root dir
=== Run upstream emulator
[source,bash]
----
cd testing/simple-upstream && ./gradlew run
----
=== Run Dshackle
[source,bash]
----
./gradlew run --args="--configPath=./testing/dshackle/dshackle.yaml"
----
or, if you want to make sure you compile and use version with your latest changes (usually unnecessary, but still):
[source,bash]
----
./gradlew clean compileKotlin run --args="--configPath=./testing/dshackle/dshackle.yaml"
----
=== Run tests
[source,bash]
----
cd testing/trial && ./gradlew check
----