Skip to content

Commit be01cf6

Browse files
committed
Only run validator tests for optional configuration
These require the optional dependencies
1 parent 221612f commit be01cf6

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

tox.ini

+13-10
Original file line numberDiff line numberDiff line change
@@ -74,46 +74,49 @@ basepython={env:PLOTLY_TOX_PYTHON_27:}
7474
commands=
7575
python --version
7676
nosetests {posargs} -x plotly/tests/test_core
77-
pytest _plotly_utils/tests/
7877

7978
[testenv:py34-core]
8079
basepython={env:PLOTLY_TOX_PYTHON_34:}
8180
commands=
8281
python --version
8382
nosetests {posargs} -x plotly/tests/test_core
84-
pytest _plotly_utils/tests/
8583

8684
[testenv:py35-core]
8785
basepython={env:PLOTLY_TOX_PYTHON_35:}
8886
commands=
8987
python --version
9088
nosetests {posargs} -x plotly/tests/test_core
91-
pytest _plotly_utils/tests/
9289

9390
[testenv:py36-core]
9491
basepython={env:PLOTLY_TOX_PYTHON_36:}
9592
commands=
9693
python --version
9794
nosetests {posargs} -x plotly/tests/test_core
98-
pytest _plotly_utils/tests/
9995

10096
[testenv:py37-core]
10197
basepython={env:PLOTLY_TOX_PYTHON_37:}
10298
commands=
10399
python --version
104100
nosetests {posargs} -x plotly/tests/test_core
105-
pytest _plotly_utils/tests/
106101

107102
; OPTIONAL ENVIRONMENTS
103+
;[testenv:py27-optional]
104+
;basepython={env:PLOTLY_TOX_PYTHON_27:}
105+
;commands=
106+
; python --version
107+
;; Do some coverage reporting. No need to do this for all environments.
108+
; mkdir -p {envbindir}/../../coverage-reports/{envname}
109+
; coverage erase
110+
; coverage run --include="*/plotly/*" --omit="*/tests*" {envbindir}/nosetests {posargs} -x plotly/tests
111+
; coverage html -d "{envbindir}/../../coverage-reports/{envname}" --title={envname}
112+
108113
[testenv:py27-optional]
109114
basepython={env:PLOTLY_TOX_PYTHON_27:}
110115
commands=
111116
python --version
112-
; Do some coverage reporting. No need to do this for all environments.
113-
mkdir -p {envbindir}/../../coverage-reports/{envname}
114-
coverage erase
115-
coverage run --include="*/plotly/*" --omit="*/tests*" {envbindir}/nosetests {posargs} -x plotly/tests
116-
coverage html -d "{envbindir}/../../coverage-reports/{envname}" --title={envname}
117+
nosetests {posargs} -x plotly/tests/test_core
118+
nosetests {posargs} -x plotly/tests/test_optional
119+
pytest _plotly_utils/tests/
117120

118121
[testenv:py34-optional]
119122
basepython={env:PLOTLY_TOX_PYTHON_34:}

0 commit comments

Comments
 (0)