Skip to content

Commit 2976b25

Browse files
Support passing pytest arguments via tox (#390)
This could be used, for example, to increase verbosity or to skip particular tests. Co-authored-by: Prashant Srivastava <[email protected]>
1 parent 4ffd7f6 commit 2976b25

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

tox.ini

+18-18
Original file line numberDiff line numberDiff line change
@@ -107,41 +107,41 @@ setenv =
107107
commands =
108108
coverage erase
109109

110-
py{37,38,39,310,311}-core: coverage run --append --source aws_xray_sdk -m pytest --ignore tests/ext
110+
py{37,38,39,310,311}-core: coverage run --append --source aws_xray_sdk -m pytest --ignore tests/ext {posargs}
111111

112-
ext-aiobotocore: coverage run --append --source aws_xray_sdk -m pytest tests/ext/aiobotocore
112+
ext-aiobotocore: coverage run --append --source aws_xray_sdk -m pytest tests/ext/aiobotocore {posargs}
113113

114-
ext-aiohttp: coverage run --append --source aws_xray_sdk -m pytest tests/ext/aiohttp
114+
ext-aiohttp: coverage run --append --source aws_xray_sdk -m pytest tests/ext/aiohttp {posargs}
115115

116-
ext-botocore: coverage run --append --source aws_xray_sdk -m pytest tests/ext/botocore
116+
ext-botocore: coverage run --append --source aws_xray_sdk -m pytest tests/ext/botocore {posargs}
117117

118-
ext-bottle: coverage run --append --source aws_xray_sdk -m pytest tests/ext/bottle
118+
ext-bottle: coverage run --append --source aws_xray_sdk -m pytest tests/ext/bottle {posargs}
119119

120-
ext-django: coverage run --append --source aws_xray_sdk -m pytest tests/ext/django
120+
ext-django: coverage run --append --source aws_xray_sdk -m pytest tests/ext/django {posargs}
121121

122-
ext-flask: coverage run --append --source aws_xray_sdk -m pytest tests/ext/flask
122+
ext-flask: coverage run --append --source aws_xray_sdk -m pytest tests/ext/flask {posargs}
123123

124-
ext-flask_sqlalchemy: coverage run --append --source aws_xray_sdk -m pytest tests/ext/flask_sqlalchemy
124+
ext-flask_sqlalchemy: coverage run --append --source aws_xray_sdk -m pytest tests/ext/flask_sqlalchemy {posargs}
125125

126-
ext-httplib: coverage run --append --source aws_xray_sdk -m pytest tests/ext/httplib
126+
ext-httplib: coverage run --append --source aws_xray_sdk -m pytest tests/ext/httplib {posargs}
127127

128-
ext-httpx: coverage run --append --source aws_xray_sdk -m pytest tests/ext/httpx
128+
ext-httpx: coverage run --append --source aws_xray_sdk -m pytest tests/ext/httpx {posargs}
129129

130-
ext-pg8000: coverage run --append --source aws_xray_sdk -m pytest tests/ext/pg8000
130+
ext-pg8000: coverage run --append --source aws_xray_sdk -m pytest tests/ext/pg8000 {posargs}
131131

132-
ext-psycopg2: coverage run --append --source aws_xray_sdk -m pytest tests/ext/psycopg2
132+
ext-psycopg2: coverage run --append --source aws_xray_sdk -m pytest tests/ext/psycopg2 {posargs}
133133

134-
ext-pymysql: coverage run --append --source aws_xray_sdk -m pytest tests/ext/pymysql
134+
ext-pymysql: coverage run --append --source aws_xray_sdk -m pytest tests/ext/pymysql {posargs}
135135

136-
ext-pynamodb: coverage run --append --source aws_xray_sdk -m pytest tests/ext/pynamodb
136+
ext-pynamodb: coverage run --append --source aws_xray_sdk -m pytest tests/ext/pynamodb {posargs}
137137

138-
ext-requests: coverage run --append --source aws_xray_sdk -m pytest tests/ext/requests
138+
ext-requests: coverage run --append --source aws_xray_sdk -m pytest tests/ext/requests {posargs}
139139

140-
ext-sqlalchemy: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlalchemy
140+
ext-sqlalchemy: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlalchemy {posargs}
141141

142-
py{37,38,39,310,311}-ext-sqlalchemy_core: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlalchemy_core
142+
py{37,38,39,310,311}-ext-sqlalchemy_core: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlalchemy_core {posargs}
143143

144-
ext-sqlite3: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlite3
144+
ext-sqlite3: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlite3 {posargs}
145145

146146
; TODO: add additional logic to combine coverage from "core" and "ext" test runs
147147
; codecov

0 commit comments

Comments
 (0)