Skip to content

Commit 3aecfd2

Browse files
committed
Clarify how specifying individual scenarios works
1 parent 7b890e0 commit 3aecfd2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ Invoking Tests
139139
You can run tests by allowing nose2's autodiscovery to find all of your tests,
140140
or you can specify specific tests to be run on the command line. When
141141
specifying specific tests, you can either specify an entire package,
142-
an entire feature, or individual scenarios.
142+
an entire feature, or individual scenarios. Individual scenarios can be
143+
specified either by index (from 0) or by name.
143144

144145
.. code::
145146
@@ -149,3 +150,7 @@ an entire feature, or individual scenarios.
149150
nose2 planterbox.tests.test_feature:basic.feature:0
150151
nose2 planterbox.tests.test_feature:basic.feature:"I need to verify basic arithmetic"
151152
nose2 planterbox.tests.test_feature:basic.feature:"I need to verify basic arithmetic."
153+
154+
If your feature includes multiple scenarios with the same name, all will be
155+
run when that name is given. Names with a trailing period can be specified with
156+
or without the trailing period.

0 commit comments

Comments
 (0)