This repository was archived by the owner on May 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -162,3 +162,43 @@ You can adjust how many rows we benchmark with by passing `N_SAMPLES` to `dev/be
162
162
``` shell-session
163
163
$ N_SAMPLES=100000000 dev/benchmark.sh # 100m which is our canonical target
164
164
```
165
+
166
+ ## VSCode Setup
167
+ To debug using the unit tests in VSCode, add the following files to a ` .vscode ` directory in the root of the repo
168
+
169
+ ` launch.json `
170
+ ```
171
+ {
172
+ "version": "0.1.0",
173
+ "configurations": [
174
+ {
175
+ "name": "Debug Unit Test",
176
+ "type": "python",
177
+ "request": "test",
178
+ "justMyCode": true,
179
+ }
180
+ ]
181
+ }
182
+ ```
183
+
184
+ ` settings.json `
185
+ ```
186
+ {
187
+ "python.testing.unittestArgs": [
188
+ "-v",
189
+ "-s",
190
+ "",
191
+ "-p",
192
+ "test_*.py"
193
+ ],
194
+ "python.testing.pytestEnabled": false,
195
+ "python.testing.unittestEnabled": true,
196
+ }
197
+ ```
198
+ You should see that the tests are now appearing in the test explorer view:
199
+
200
+ ![ asdf] ( /docs/debug_example.png )
201
+
202
+ This will allow you to run tests in the IDE, debug them, and hit breakpoints.
203
+
204
+ Note that some tests require that you have the docker containers mentioned above running in order to pass.
You can’t perform that action at this time.
0 commit comments