You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Full setup instructions for all platforms (Linux, macOS, Windows) are in the [installation guide](https://thd-spatial-ai.github.io/city2tabula/installation/setup/).
30
+
31
+
---
32
+
33
+
## Local Documentation (MkDocs)
24
34
25
35
```bash
26
36
python -m pip install -r docs/requirements.txt
27
37
python -m mkdocs serve
28
38
```
29
39
40
+
---
41
+
30
42
## CLI
31
43
32
-
Build locally:
44
+
### Flags
45
+
46
+
| Flag | Description |
47
+
|------|-------------|
48
+
|`-create-db`| Create the complete City2TABULA database (CityDB infrastructure + schemas + data import) |
49
+
|`-reset-db`| Reset everything: drop all schemas and recreate the complete database |
50
+
|`-reset-citydb`| Reset only CityDB infrastructure (drop CityDB schemas, recreate, and re-import data) |
51
+
|`-reset-city2tabula`| Reset only City2TABULA schemas (preserves CityDB) |
52
+
|`-extract-features`| Run the feature extraction pipeline |
53
+
|`-version` / `-v`| Print version and exit |
54
+
55
+
---
56
+
57
+
## Testing
33
58
34
59
```bash
35
-
go build -o city2tabula ./cmd
36
-
./city2tabula --help
37
-
```
60
+
# Unit tests
61
+
go test ./...
38
62
39
-
Common flags:
63
+
# Unit tests with coverage
64
+
go test -coverprofile=coverage.out -covermode=atomic ./...
65
+
go tool cover -html=coverage.out
40
66
41
-
-`-create-db`
42
-
-`-reset-db`
43
-
-`-reset-citydb`
44
-
-`-reset-city2tabula`
45
-
-`-extract-features`
46
-
-`-version` / `-v`
67
+
# Integration tests (requires Docker)
68
+
go test -tags integration -v -timeout 10m ./internal/process/
69
+
70
+
# SQL benchmarks (requires Docker)
71
+
go test -tags integration -bench=. -benchmem -run=^$ ./internal/process/
0 commit comments