Skip to content

Commit 2df0b2e

Browse files
authored
Merge pull request #158 from gnosis/configure-vs-code
Support debug in visual studio code
2 parents 947ab5e + 098bcba commit 2df0b2e

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ node_modules/
33
.DS_Store
44
.zos.session
55
.openzeppelin/.session
6-
.vscode/
76
env/
87
.env

.vscode/launch.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "truffle test (ganache running)",
6+
"type": "node",
7+
"request": "launch",
8+
"program": "${workspaceRoot}/node_modules/truffle/build/cli.bundled.js",
9+
"args": [
10+
"test"
11+
],
12+
"cwd": "${workspaceRoot}",
13+
"outFiles": [
14+
"${workspaceRoot}/test/**/*"
15+
],
16+
},
17+
]
18+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"scripts": {
1515
"test-norpc": "truffle test",
16-
"test": "run-with-testrpc -l 20000000 --noVMErrorsOnRPCResponse 'truffle test'",
16+
"test": "run(){ run-with-testrpc -l 20000000 --noVMErrorsOnRPCResponse \"truffle test $@\"; }; run",
1717
"preversion": "npm run restore",
1818
"truffle-oz-merge": "node scripts/merge_oz.js",
1919
"deploy-oz": "node scripts/deploy_safe_contracts_oz.js",

0 commit comments

Comments
 (0)