kevinjqliu commented on code in PR #2125:
URL: https://github.com/apache/iceberg-python/pull/2125#discussion_r2157794565
##########
Makefile:
##########
@@ -62,44 +58,51 @@ test-integration-setup: # Prepare the environment for
integration
docker compose -f dev/docker-compose-integration.yml cp
./dev/provision.py spark-iceberg:/opt/spark/provision.py
docker compose -f dev/docker-compose-integration.yml exec -T
spark-iceberg ipython ./provision.py
-test-integration-exec: # Execute integration tests, can add arguments with
PYTEST_ARGS="-vv"
+test-integration-exec: # Execute integration tests, can add arguments with
PYTEST_ARGS="-vv"
poetry run pytest tests/ -v -m integration ${PYTEST_ARGS}
test-integration-rebuild:
docker compose -f dev/docker-compose-integration.yml kill
docker compose -f dev/docker-compose-integration.yml rm -f
docker compose -f dev/docker-compose-integration.yml build --no-cache
-test-adls: ## Run tests marked with adls, can add arguments with
PYTEST_ARGS="-vv"
+test-object-store-integration: test-s3 test-adls test-gcs # Run object stores
integration tests, can add arguments with PYTEST_ARGS="-vv"
+
+test-s3: # Run tests marked with s3, can add arguments with PYTEST_ARGS="-vv"
+ sh ./dev/run-minio.sh
+ poetry run pytest tests/ -m s3 ${PYTEST_ARGS}
+
+test-adls: # Run tests marked with adls, can add arguments with
PYTEST_ARGS="-vv"
sh ./dev/run-azurite.sh
poetry run pytest tests/ -m adls ${PYTEST_ARGS}
-test-gcs: ## Run tests marked with gcs, can add arguments with
PYTEST_ARGS="-vv"
+test-gcs: # Run tests marked with gcs, can add arguments with PYTEST_ARGS="-vv"
sh ./dev/run-gcs-server.sh
- poetry run pytest tests/ -m gcs ${PYTEST_ARGS}
+ poetry run pytest tests/ -m gcs ${PYTEST_ARGS}
test-coverage-unit: # Run test with coverage for unit tests, can add arguments
with PYTEST_ARGS="-vv"
poetry run coverage run --source=pyiceberg/ --data-file=.coverage.unit
-m pytest tests/ -v -m "(unmarked or parametrize) and not integration"
${PYTEST_ARGS}
-test-coverage-integration: # Run test with coverage for integration tests, can
add arguments with PYTEST_ARGS="-vv"
- docker compose -f dev/docker-compose-integration.yml kill
- docker compose -f dev/docker-compose-integration.yml rm -f
- docker compose -f dev/docker-compose-integration.yml up -d
Review Comment:
refactor: remove these lines and reuse `test-integration-setup`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]