mirror of
https://github.com/minio/minio-rs.git
synced 2025-12-06 23:36:52 +08:00
Reorganize project structure to improve maintainability and add comprehensive testing documentation and tooling support.
19 lines
700 B
PowerShell
19 lines
700 B
PowerShell
# Set environment variables to run tests on play.min.io
|
|
$Env:SERVER_ENDPOINT = "http://localhost:9000/"
|
|
$Env:ACCESS_KEY = if ($Env:MINIO_ROOT_USER) { $Env:MINIO_ROOT_USER } else { "minioadmin" }
|
|
$Env:SECRET_KEY = if ($Env:MINIO_ROOT_PASSWORD) { $Env:MINIO_ROOT_PASSWORD } else { "minioadmin" }
|
|
$Env:ENABLE_HTTPS = "false"
|
|
$Env:MINIO_SSL_CERT_FILE = "./tests/public.crt"
|
|
$Env:IGNORE_CERT_CHECK = "false"
|
|
$Env:SERVER_REGION = "us-east-1"
|
|
|
|
# Run tests
|
|
cargo test -- --nocapture
|
|
|
|
# run one specific test and show stdout
|
|
# cargo test --test test_bucket_exists -- --nocapture
|
|
|
|
# run tests with ring instead of default-crypto
|
|
# cargo test --no-default-features --features "default-tls,ring" -- --nocapture
|
|
|