-
Notifications
You must be signed in to change notification settings - Fork 6
/
optimizing_workspace.feature
33 lines (29 loc) · 1.42 KB
/
optimizing_workspace.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Feature: Optimizing a CosmWasm workspace
Scenario: Optimizes workspace for the first time
Given the user is in the workspace "cw-plus"
When the user successfully runs cw-optimizoor for the first time
Then 10 contracts are optimized
And 10 wasm files exist in the artifacts dir
And each artifact contains a function named "execute"
Scenario: Reoptimizes workspace a second time
Given the user is in the workspace "cw-plus"
When the user successfully runs cw-optimizoor again
Then 10 contracts are unchanged and skipped
But 10 wasm files exist in the artifacts dir
And each artifact contains a function named "execute"
Scenario: Reoptimizes only changed contracts
Given the user is in the workspace "cw-plus"
And the user makes a change in the "cw1-subkeys" contract
When the user successfully runs cw-optimizoor again
Then 9 contracts are unchanged and skipped
But "cw1_subkeys" is reoptimized
And 10 wasm files exist in the artifacts dir
And each artifact contains a function named "execute"
Scenario: Reoptimizes deleted artifact
Given the user is in the workspace "cw-plus"
And the user deletes the artifact "cw1_subkeys"
When the user successfully runs cw-optimizoor again
Then 9 contracts are unchanged and skipped
But "cw1_subkeys" is reoptimized
And 10 wasm files exist in the artifacts dir
And each artifact contains a function named "execute"