We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d38e1d9 commit 66c38d8Copy full SHA for 66c38d8
1 file changed
Makefile
@@ -13,8 +13,15 @@ build:
13
# 单元测试
14
test:
15
$(PIP) install pytest pytest-cov; \
16
- chmod +x ./test_env.sh; \
17
- ./test_env.sh
+ grep -v '^#' .env; \
+ export $(grep -v '^#' .env | xargs); \
18
+ pytest -s --cov-config=./.coveragerc --cov-report html --cov-report xml --cov=./
19
+
20
+test-pro:
21
+ $(PIP) install pytest pytest-cov; \
22
+ grep -v '^#' .env-pro; \
23
+ export $(grep -v '^#' .env-pro | xargs); \
24
25
26
upload-test:
27
$(PIP) install twine; \
@@ -45,4 +52,4 @@ clean:
45
52
tests/__pycache__/ \
46
53
.bge/tmp/*
47
54
48
-.PHONY: test upload upload-test build install changelog clean
55
+.PHONY: test test-pro upload upload-test build install changelog clean
0 commit comments