1 Star 0 Fork 1

Singledigit / moto

forked from Gitee 极速下载 / moto 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
Bert Blommers 提交于 2021-10-05 17:11 . Parallelize tests - Part 1 (#4368)
SHELL := /bin/bash
ifeq ($(TEST_SERVER_MODE), true)
# exclude test_kinesisvideoarchivedmedia
# because testing with moto_server is difficult with data-endpoint
TEST_EXCLUDE := -k 'not (test_kinesisvideoarchivedmedia or test_awslambda or test_batch or test_ec2 or test_sqs)'
# Parallel tests will be run separate
PARALLEL_TESTS := ./tests/test_awslambda ./tests/test_batch ./tests/test_ec2 ./tests/test_sqs
else
TEST_EXCLUDE :=
PARALLEL_TESTS := ./tests/test_core
endif
init:
@python setup.py develop
@pip install -r requirements-dev.txt
lint:
flake8 moto
black --check moto/ tests/
pylint -j 0 tests
format:
black moto/ tests/
test-only:
rm -f .coverage
rm -rf cover
pytest -sv --cov=moto --cov-report xml ./tests/ $(TEST_EXCLUDE)
MOTO_CALL_RESET_API=false pytest -n 4 $(PARALLEL_TESTS)
test: lint test-only
test_server:
@TEST_SERVER_MODE=true pytest -sv --cov=moto --cov-report xml ./tests/
aws_managed_policies:
scripts/update_managed_policies.py
implementation_coverage:
./scripts/implementation_coverage.py
git commit IMPLEMENTATION_COVERAGE.md -m "Updating implementation coverage" || true
scaffold:
@pip install -r requirements-dev.txt > /dev/null
exec python scripts/scaffold.py
int_test:
@./scripts/int_test.sh
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/singledigithc/moto.git
git@gitee.com:singledigithc/moto.git
singledigithc
moto
moto
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891