-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
38 lines (34 loc) · 1.17 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[tox]
skipsdist=True
envlist=
{test}-{py39}-{new_operation}
{test}-{py39}-{get_balance}
{test}-{py39}-{poll_results}
{test}-{py39}-{arithmetic_operation_worker}
{test}-{py39}-{delete_record}
{test}-{py39}-{list_records}
{test}-{py39}-{list_operations}
{test}-{py39}-{shared}
[testenv]
basepython=
py39: python3.9
setenv =
new_operation: FOLDER = lambdas/new_operation
get_balance: FOLDER = lambdas/get_balance
poll_results: FOLDER = lambdas/poll_results
arithmetic_operation_worker: FOLDER = lambdas/arithmetic_operation_worker
delete_record: FOLDER = lambdas/delete_record
list_records: FOLDER = lambdas/list_records
list_operations: FOLDER = lambdas/list_operations
shared: FOLDER = shared
{test}: PYTHONPATH = {toxinidir}/{env:FOLDER}:{toxinidir}/{env:FOLDER}/tests/
deps =
-rrequirements.txt
-rdev-requirements.txt
commands =
test: pytest {posargs} {env:FOLDER}/tests -vv \
--ignore=regression \
--cov {env:FOLDER} \
--cov-report html:{env:FOLDER}/tests/reports/htmlcov \
--cov-report xml:{env:FOLDER}/tests/reports/coverage.xml \
--cov-report term-missing