File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,13 @@ function test_e2e () {
104
104
local NETWORK=$1
105
105
local GRAPH_CONFIG=$2
106
106
local ADDRESS_BOOK=$3
107
+ local SKIP_BRIDGE_TESTS=$4
107
108
108
- npx hardhat e2e --network " $NETWORK " --graph-config " $GRAPH_CONFIG " --address-book " $ADDRESS_BOOK "
109
+ if [[ -z " $SKIP_BRIDGE_TESTS " ]]; then
110
+ npx hardhat e2e --network " $NETWORK " --graph-config " $GRAPH_CONFIG " --address-book " $ADDRESS_BOOK "
111
+ else
112
+ npx hardhat e2e --network " $NETWORK " --graph-config " $GRAPH_CONFIG " --address-book " $ADDRESS_BOOK " --skip-bridge
113
+ fi
109
114
}
110
115
111
116
function test_e2e_scenarios () {
177
182
178
183
# # TEST
179
184
# Run e2e tests
180
- test_e2e " $L1_NETWORK " " $L1_GRAPH_CONFIG " " $ADDRESS_BOOK "
181
- if [[ -n " $L2_NETWORK " ]]; then
185
+ if [[ -z " $L2_NETWORK " ]]; then
186
+ test_e2e " $L1_NETWORK " " $L1_GRAPH_CONFIG " " $ADDRESS_BOOK " true
187
+ else
188
+ test_e2e " $L1_NETWORK " " $L1_GRAPH_CONFIG " " $ADDRESS_BOOK "
182
189
test_e2e " $L2_NETWORK " " $L2_GRAPH_CONFIG " " $ADDRESS_BOOK "
183
190
fi
184
191
Original file line number Diff line number Diff line change @@ -30,12 +30,17 @@ const setGraphConfig = async (args: TaskArguments, hre: HardhatRuntimeEnvironmen
30
30
task ( 'e2e' , 'Run all e2e tests' )
31
31
. addOptionalParam ( 'graphConfig' , cliOpts . graphConfig . description )
32
32
. addOptionalParam ( 'addressBook' , cliOpts . addressBook . description )
33
+ . addFlag ( 'skipBridge' , 'Skip bridge tests' )
33
34
. setAction ( async ( args , hre : HardhatRuntimeEnvironment ) => {
34
- const testFiles = [
35
+ let testFiles = [
35
36
...new glob . GlobSync ( CONFIG_TESTS ) . found ,
36
37
...new glob . GlobSync ( INIT_TESTS ) . found ,
37
38
]
38
39
40
+ if ( args . skipBridge ) {
41
+ testFiles = testFiles . filter ( ( file ) => ! [ 'l1' , 'l2' ] . includes ( file . split ( '/' ) [ 3 ] ) )
42
+ }
43
+
39
44
setGraphConfig ( args , hre )
40
45
await hre . run ( TASK_TEST , {
41
46
testFiles : testFiles ,
You can’t perform that action at this time.
0 commit comments