Skip to content

Commit 9530d46

Browse files
kako-junclaude
andcommitted
refactor: tests を diffx-cli に移動、.gitignore を Rust 専用に簡素化
## 構造の整理 - tests/ を diffx-cli/tests/ に移動 - すべてのテストが diffx CLI バイナリをテストしているため - ワークスペース全体の統合テストではなかった - diffx-cli に属するべきテスト - Cargo.toml 修正 - テストパスを `../tests/` から `tests/` に変更 - 正しくビルドできるように - tests/lib.rs 簡素化 - 存在しないモジュール(core, basic, formats, errors, features)を削除 - 実際に存在する3つのモジュールのみ残す(cli, docs_examples, integration) ## .gitignore の簡素化 - Node.js 関連の設定を削除(86-97行) - Python 関連の設定を削除(98-116行) - lawkit/benf など他プロジェクトの痕跡を削除 - Rust 専用リポジトリに適した内容に 理由: - diffx は Rust 専用リポジトリ - diffx-js と diffx-python は別リポジトリに分離済み ## 構造の明確化 Before: ``` diffx/ ├── Cargo.toml (workspace) ├── diffx-core/ ├── diffx-cli/ └── tests/ ← 束ねた位置にあるが、実際は CLI のテストのみ ``` After: ``` diffx/ ├── Cargo.toml (workspace のみ) ├── diffx-core/ (独自のテストを持つ) └── diffx-cli/ (独自のテストを持つ) └── tests/ ← CLI のテスト ``` 各クレートが独自のテストを持ち、ワークスペースルートはシンプルに。 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]>
1 parent 3166c96 commit 9530d46

88 files changed

Lines changed: 19 additions & 115 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,12 @@ Session.vim
4848
test_output/
4949
test_manual/
5050
test_threshold.csv
51-
tests/integration/usage_test_data/
52-
tests/integration/batch_test_data/
53-
tests/output/
51+
diffx-cli/tests/output/
5452
**/diff_report_v*.json
5553

5654
# === Logs ===
5755
*.log
5856
logs/
59-
docs-consistency-*.log
60-
docs-consistency-*.json
61-
62-
# === Documentation build ===
63-
/book/
64-
/docs/_build/
6557

6658
# === Benchmark outputs ===
6759
criterion/
@@ -71,52 +63,13 @@ bench_*.txt
7163
tarpaulin-report.html
7264
lcov.info
7365
coverage/
74-
.coverage
75-
htmlcov/
76-
.pytest_cache/
7766

7867
# === Release artifacts ===
7968
*.tar.gz
8069
*.zip
8170
*.tgz
8271
*.tar.gz.sig
8372
release/
84-
!scripts/release/
85-
86-
# === Node.js ===
87-
node_modules/
88-
npm-debug.log*
89-
yarn-debug.log*
90-
yarn-error.log*
91-
lerna-debug.log*
92-
.pnpm-debug.log*
93-
.npm
94-
.yarn-integrity
95-
**/dist/
96-
**/build/
97-
98-
# === Python ===
99-
__pycache__/
100-
*.py[cod]
101-
*$py.class
102-
*.so
103-
.Python
104-
.venv
105-
env/
106-
venv/
107-
ENV/
108-
env.bak/
109-
venv.bak/
110-
*.egg-info/
111-
python-package/dist/
112-
python-package/build/
113-
python-package/lawkit.egg-info/
114-
python-venv/
115-
*.whl
116-
117-
# === Binary downloads ===
118-
**/packages/*/bin/
119-
**/packages/*/temp/
12073

12174
# === Configuration files with sensitive data ===
12275
.config/
@@ -134,41 +87,10 @@ secrets.json
13487
**/*mcp-logs-ide*
13588
**/.claude/settings.local.json
13689

137-
# === Project specific ===
138-
.github-shared/
139-
github-shared/
140-
/diffx/
141-
test-packages/
142-
scripts_old/
143-
144-
# === Downloaded ML models (large files) ===
145-
test-models/distilbert_base/
146-
test-models/dialogpt_small/
147-
test-models/gpt2_small/
148-
test-models/distilgpt2/
149-
test-models/tiny_gpt2/
150-
test-models/.venv/
151-
test-models/uv.lock
152-
153-
# === Large test files ===
154-
*.csv.large
155-
*.xlsx.large
156-
*.json.large
157-
158-
# === NPM package specifics ===
159-
npm-package/bin/lawkit*
160-
npm-package/bin/benf*
161-
!npm-package/bin/lawkit
162-
!npm-package/bin/benf
163-
164-
# === diffx npm binaries ===
165-
diffx-npm/bin/
166-
167-
github-shared
168-
16990
# === Temporary test directories ===
17091
tmp/
17192
temp-*/
17293
tmp-*/
173-
# Old/deprecated files
94+
95+
# === Old/deprecated files ===
17496
_*

diffx-cli/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ tempfile = { workspace = true }
3535

3636
[[test]]
3737
name = "cli"
38-
path = "../tests/cli/mod.rs"
38+
path = "tests/cli/mod.rs"
3939

4040
[[test]]
4141
name = "docs_examples"
42-
path = "../tests/docs_examples/mod.rs"
42+
path = "tests/docs_examples/mod.rs"
4343

4444
[[test]]
4545
name = "integration"
46-
path = "../tests/integration/mod.rs"
46+
path = "tests/integration/mod.rs"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)