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
make test-mongo-local # Run MongoDB tests with Docker
739
-
make test-all-local # Run all backends with Docker
739
+
make test-all-local # Run all backends locally (Docker used for mongo/redis/sql)
740
740
make test-mongo-inmemory # Run with in-memory MongoDB (default)
741
741
742
742
**Option 3: Manual setup**
@@ -762,18 +762,21 @@ Contributors are encouraged to test against a real MongoDB instance before submi
762
762
Testing all backends locally
763
763
-----------------------------
764
764
765
-
To test all cachier backends (MongoDB, Redis, SQL, Memory, Pickle) locally with Docker:
765
+
To test all cachier backends (MongoDB, Redis, SQL, S3, Memory, Pickle) locally:
766
766
767
767
.. code-block:: bash
768
768
769
769
# Test all backends at once
770
770
./scripts/test-local.sh all
771
771
772
-
# Test only external backends (MongoDB, Redis, SQL)
772
+
# Test only external backends that require Docker (MongoDB, Redis, SQL)
773
773
./scripts/test-local.sh external
774
774
775
+
# Test S3 backend only (uses moto, no Docker needed)
776
+
./scripts/test-local.sh s3
777
+
775
778
# Test specific combinations
776
-
./scripts/test-local.sh mongo redis
779
+
./scripts/test-local.sh mongo redis s3
777
780
778
781
# Keep containers running for debugging
779
782
./scripts/test-local.sh all -k
@@ -784,7 +787,7 @@ To test all cachier backends (MongoDB, Redis, SQL, Memory, Pickle) locally with
784
787
# Test multiple files across all backends
785
788
./scripts/test-local.sh all -f tests/test_main.py -f tests/test_redis_core_coverage.py
786
789
787
-
The unified test script automatically manages Docker containers, installs required dependencies, and runs the appropriate test suites. The ``-f`` / ``--files`` option allows you to run specific test files instead of the entire test suite. See ``scripts/README-local-testing.md`` for detailed documentation.
790
+
The unified test script automatically manages Docker containers for MongoDB/Redis/SQL, installs required dependencies (including ``tests/requirements_s3.txt`` for S3), and runs the appropriate test suites. The ``-f`` / ``--files`` option allows you to run specific test files instead of the entire test suite. See ``scripts/README-local-testing.md`` for detailed documentation.
0 commit comments