Skip to content

Commit 49361f4

Browse files
committed
VSCode: add a task for code coverage profiling
Add a task to build the tests with code coverage. This is meant for ease of generating the coverage information (and theoretically can be plumbed into VSCode).
1 parent 2504748 commit 49361f4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.vscode/tasks.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,29 @@
110110
}
111111
},
112112
},
113+
{
114+
"label": "Test (Coverage)",
115+
"command": "swift",
116+
"type": "shell",
117+
"args": [
118+
"test",
119+
"-c", "debug",
120+
"-Xswiftc", "-DENABLE_TESTING",
121+
"--enable-code-coverage",
122+
],
123+
"group": "test",
124+
"windows": {
125+
"options": {
126+
"shell": {
127+
"executable": "C:\\WINDOWS\\System32\\cmd.exe",
128+
"args": [
129+
"/d",
130+
"/c",
131+
]
132+
}
133+
}
134+
}
135+
}
113136
{
114137
"label": "Test (Release)",
115138
"command": "swift",

0 commit comments

Comments
 (0)