mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-06 05:08:11 +08:00
fix local_server unit-test target (#2078)
This commit is contained in:
@@ -84,10 +84,6 @@ smoke-test:
|
|||||||
smoke-test-annotations:
|
smoke-test-annotations:
|
||||||
cd client && $(MAKE) smoke-test-annotations
|
cd client && $(MAKE) smoke-test-annotations
|
||||||
|
|
||||||
.PHONY: test-db-local
|
|
||||||
test-db-local:
|
|
||||||
cd local_server && $(MAKE) test-db
|
|
||||||
|
|
||||||
.PHONY: test-db
|
.PHONY: test-db
|
||||||
test-db:
|
test-db:
|
||||||
cd server && $(MAKE) test-db
|
cd server && $(MAKE) test-db
|
||||||
|
|||||||
+1
-24
@@ -7,7 +7,7 @@ clean:
|
|||||||
rm -f common/web/csp-hashes.json
|
rm -f common/web/csp-hashes.json
|
||||||
|
|
||||||
.PHONY: unit-test
|
.PHONY: unit-test
|
||||||
unit-test: create-test-db
|
unit-test:
|
||||||
PYTHONWARNINGS=ignore:ResourceWarning coverage run \
|
PYTHONWARNINGS=ignore:ResourceWarning coverage run \
|
||||||
--source=app,cli,common,compute,converters,data_anndata,data_common \
|
--source=app,cli,common,compute,converters,data_anndata,data_common \
|
||||||
--omit=.coverage,data_common/fbs/NetEncoding,venv \
|
--omit=.coverage,data_common/fbs/NetEncoding,venv \
|
||||||
@@ -15,31 +15,8 @@ unit-test: create-test-db
|
|||||||
--start-directory test/ \
|
--start-directory test/ \
|
||||||
--top-level-directory ../ \
|
--top-level-directory ../ \
|
||||||
--verbose; test_result=$$?; \
|
--verbose; test_result=$$?; \
|
||||||
$(MAKE) clean-test-db; \
|
|
||||||
exit $$test_result \
|
exit $$test_result \
|
||||||
|
|
||||||
|
|
||||||
.PHONY: test-db
|
|
||||||
test-db: create-test-db
|
|
||||||
PYTHONWARNINGS=ignore:ResourceWarning coverage run \
|
|
||||||
--source=app,cli,common,compute,converters,data_anndata,data_common \
|
|
||||||
--omit=.coverage,data_common/fbs/NetEncoding,venv \
|
|
||||||
-m unittest discover \
|
|
||||||
--start-directory test/test_database \
|
|
||||||
--top-level-directory ../ \
|
|
||||||
--verbose; test_result=$$?; \
|
|
||||||
$(MAKE) clean-test-db; \
|
|
||||||
exit $$test_result
|
|
||||||
|
|
||||||
.PHONY: create-test-db
|
|
||||||
create-test-db:
|
|
||||||
-docker run -d -p 5432:5432 --name test_db -e POSTGRES_PASSWORD=test_pw postgres
|
|
||||||
|
|
||||||
.PHONY: clean-test-db
|
|
||||||
clean-test-db:
|
|
||||||
-docker stop test_db
|
|
||||||
-docker rm test_db
|
|
||||||
|
|
||||||
.PHONY: test-annotations-performance
|
.PHONY: test-annotations-performance
|
||||||
test-annotations-performance:
|
test-annotations-performance:
|
||||||
python test/performance/performance_test_annotations_backend.py
|
python test/performance/performance_test_annotations_backend.py
|
||||||
|
|||||||
Reference in New Issue
Block a user