Skip to content

Commit 1265b06

Browse files
alexreaperhulk
authored andcommitted
Run tests in random order to weed out issues (#842)
1 parent 8fd7c15 commit 1265b06

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ matrix:
6666
- python: "pypy3.5-5.10.1"
6767
env: TOXENV=pypy3-cryptographyMinimum
6868

69+
# Run tests in random order
70+
- python: "2.7"
71+
env: TOXENV=py27-randomorder
72+
- python: "3.7"
73+
env: TOXENV=py37-randomorder
6974

7075
# Make sure we don't break Twisted or urllib3
7176
- python: "2.7"

tox.ini

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = {pypy,pypy3,py27,py34,py35,py36,py37}{,-cryptographyMaster,-cryptographyMinimum},py27-twistedMaster,pypi-readme,check-manifest,flake8,docs,coverage-report
2+
envlist = {pypy,pypy3,py27,py34,py35,py36,py37}{,-cryptographyMaster,-cryptographyMinimum}{,-randomorder},py27-twistedMaster,pypi-readme,check-manifest,flake8,docs,coverage-report
33

44
[testenv]
55
whitelist_externals =
@@ -11,6 +11,7 @@ deps =
1111
coverage>=4.2
1212
cryptographyMaster: git+https://github.com/pyca/cryptography.git
1313
cryptographyMinimum: cryptography==2.3.0
14+
randomorder: pytest-randomly
1415
setenv =
1516
# Do not allow the executing environment to pollute the test environment
1617
# with extra packages.

0 commit comments

Comments
 (0)