-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathtox.ini
More file actions
executable file
·25 lines (22 loc) · 873 Bytes
/
tox.ini
File metadata and controls
executable file
·25 lines (22 loc) · 873 Bytes
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
;---
; Excerpted from "Python Testing with pytest",
; published by The Pragmatic Bookshelf.
; Copyrights apply to this code. It may not be used to create training material,
; courses, books, articles, and the like. Contact us if you are in doubt.
; We make no guarantees that this code is fit for any purpose.
; Visit http://www.pragmaticprogrammer.com/titles/bopytest for more book information.
;---
# tox.ini , put in same dir as setup.py
[tox]
envlist = py27,py36
[testenv]
# If you have multiple test dependencies, you can put them on separate lines
deps=pytest
# Tells tox to run pytest in each environment
commands=pytest
[pytest]
# We can put whatever we normally would want to put into pytest.ini to configure pytest
addopts = -rsxX -l --tb=short --strict
markers =
smoke: Run the smoke test test functions
get: Run the test functions that test tasks.get()