Skip to content

Commit dc43940

Browse files
authored
chore: specify test paths to integrate with vscode testing extension (#2194)
# Rationale for this change Add `testpaths` option to enjoy the Test Explorer UI extension in development. Without this option, though the Python Test Adpater Log will run `pytest --collect-only` to discovery tests, it will potential occur error when parsing the test files (e.g. Import Error). --- ## Results: | Before adding `testpaths` | After adding `testpaths` | |------------------------------|---------------------------| | ![image](https://github.com/user-attachments/assets/bbee6269-7e96-4a4a-a838-3be283260f6a)| ![image](https://github.com/user-attachments/assets/210eabbd-12ea-4d70-b71e-a9d47a25d828)| After adding `testpaths`: # Are these changes tested? Yes, Tested on Codespace and local VScode # Are there any user-facing changes? No, this change not affect any iceberg code.
1 parent 11a7d86 commit dc43940

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ pyiceberg-core = ["pyiceberg-core"]
317317
datafusion = ["datafusion"]
318318

319319
[tool.pytest.ini_options]
320+
testpaths = ["tests"]
321+
320322
markers = [
321323
"unmarked: marks a test as a unittest",
322324
"s3: marks a test as requiring access to s3 compliant storage (use with --aws-access-key-id, --aws-secret-access-key, and --endpoint args)",

0 commit comments

Comments
 (0)