-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: switch testing framework to foundry (#59)
- Loading branch information
1 parent
b2452c9
commit 228ecc4
Showing
17 changed files
with
1,167 additions
and
887 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "packages/did-eth-registry/lib/forge-std"] | ||
path = packages/did-eth-registry/lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
branch = v1.6.1 |
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,7 +1,5 @@ | ||
.git/ | ||
cache/ | ||
artifacts/ | ||
lib/ | ||
build/ | ||
typechain/ | ||
typechain-types/ | ||
|
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,6 @@ | ||
{ | ||
"recommendations": [ | ||
"esbenp.prettier-vscode", | ||
"juanblanco.solidity" | ||
] | ||
} |
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,106 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "preinstall", | ||
"type": "shell", | ||
"command": "forge install", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"group": { | ||
"kind": "build" | ||
} | ||
}, | ||
{ | ||
"label": "install", | ||
"type": "shell", | ||
"command": "yarn install --frozen-lockfile", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"dependsOn": "preinstall", | ||
"group": { | ||
"kind": "build" | ||
} | ||
}, | ||
{ | ||
"label": "prettier", | ||
"type": "shell", | ||
"command": "yarn prettier:check", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"dependsOn": "install", | ||
"group": { | ||
"kind": "build" | ||
} | ||
}, | ||
{ | ||
"label": "lint", | ||
"type": "shell", | ||
"command": "yarn lint", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"dependsOn": "prettier", | ||
"group": { | ||
"kind": "build" | ||
} | ||
}, | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"command": "forge build --sizes", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"dependsOn": "lint", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "test", | ||
"type": "shell", | ||
"command": "forge test -vvv", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"dependsOn": "lint", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "coverage", | ||
"type": "shell", | ||
"command": "forge coverage", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"dependsOn": "lint", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": false | ||
} | ||
}, | ||
{ | ||
"label": "gas", | ||
"type": "shell", | ||
"command": "forge test --gas-report", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"dependsOn": "lint", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": false | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[profile.default] | ||
src = "contracts" | ||
out = "out" | ||
libs = ["node_modules"] | ||
libs = ["node_modules", "lib"] | ||
|
||
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options |
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
Oops, something went wrong.