Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 80647b5

Browse files
authored
Merge branch 'master' into valentin-dx-842-add-column-types-to-json-output
2 parents 4ee1a88 + 0d65830 commit 80647b5

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed

.github/workflows/stale.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ jobs:
2828
close-issue-message: "Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment and it will be reopened for triage."
2929
close-pr-message: "Although we are closing this pull request as stale, it's not gone forever. PRs can be reopened if there is renewed community interest. Just add a comment and it will be reopened for triage."
3030
close-issue-reason: "not_planned"
31+
exempt-issue-labels: "stale_immune"
32+
exempt-pr-labels: "stale_immune"

CONTRIBUTING.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,43 @@ You can adjust how many rows we benchmark with by passing `N_SAMPLES` to `dev/be
162162
```shell-session
163163
$ N_SAMPLES=100000000 dev/benchmark.sh # 100m which is our canonical target
164164
```
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.

docs/debug_example.png

225 KB
Loading

docs/usage_analytics.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ We capture two events: one when the data-diff run starts, and one when it is fin
99
- Sizes of tables diffed, run time, and diff row count (numbers only)
1010
- Error message, if any, truncated to the first 20 characters.
1111
- A persistent UUID to indentify the session, stored in `~/.datadiff.toml`
12+
- IP address of the machine running diff
1213

1314
When using the `--dbt` feature, we also collect:
1415

@@ -27,4 +28,4 @@ To disable, use one of the following methods:
2728
import data_diff
2829
# Invoke the following before making any API calls
2930
data_diff.disable_tracking()
30-
```
31+
```

0 commit comments

Comments
 (0)