Skip to content

Commit ac6fbc8

Browse files
authored
Merge pull request #713 from psafont/tox_args
feature: allow users to run specific tests using tox
2 parents 3799c7d + 3ebbbb1 commit ac6fbc8

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ CWL conformance tests: |Conformance Status| |Linux Status| |Windows Status| |Cov
77

88
.. |Conformance Status| image:: https://ci.commonwl.org/buildStatus/icon?job=cwltool-conformance
99
:target: https://ci.commonwl.org/job/cwltool-conformance/
10-
10+
1111
.. |Linux Status| image:: https://img.shields.io/travis/common-workflow-language/cwltool/master.svg?label=Linux%20builds
1212
:target: https://travis-ci.org/common-workflow-language/cwltool
13-
13+
1414
.. |Windows Status| image:: https://img.shields.io/appveyor/ci/mr-c/cwltool/master.svg?label=Windows%20builds
1515
:target: https://ci.appveyor.com/project/mr-c/cwltool
1616

1717
.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/common-workflow-language/cwltool.svg
1818
:target: https://codecov.io/gh/common-workflow-language/cwltool
19-
19+
2020
This is the reference implementation of the Common Workflow Language. It is
2121
intended to feature complete and provide comprehensive validation of CWL
2222
files as well as provide other tools related to working with CWL.
@@ -88,6 +88,8 @@ List of all environment can be seen using:
8888
``tox --listenvs``
8989
and running a specfic test env using:
9090
``tox -e <env name>``
91+
and additionally run a specific test using this format:
92+
``tox -e py36-unit -- tests/test_examples.py::TestParamMatching``
9193

9294
- Running the entire suite of CWL conformance tests:
9395

@@ -139,8 +141,8 @@ Run `cwltool` just as you normally would, but with the new option, e.g. from the
139141
.. code:: bash
140142
141143
cwltool --user-space-docker-cmd=udocker https://raw.githubusercontent.com/common-workflow-language/common-workflow-language/master/v1.0/v1.0/test-cwl-out2.cwl https://github.com/common-workflow-language/common-workflow-language/blob/master/v1.0/v1.0/empty.json
142-
143-
or
144+
145+
or
144146

145147
.. code:: bash
146148

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ deps =
2424
py{27,34,35,36}-lint: flake8
2525

2626
commands =
27-
py{27,34,35,36}-unit: python setup.py test --addopts "--cov-report xml --cov cwltool"
27+
py{27,34,35,36}-unit: python setup.py test --addopts "--cov-report xml --cov cwltool {posargs}"
2828
py{27,34,35,36}-unit: codecov
2929
py{27,34,35,36}-lint: flake8 schema_salad setup.py
3030

0 commit comments

Comments
 (0)