Skip to content

Commit

Permalink
revert the wrongly changed test code
Browse files Browse the repository at this point in the history
  • Loading branch information
do3cc committed Dec 18, 2014
1 parent 765edb9 commit 4330ad8
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/zope/testrunner/tests/testrunner-discovery.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,3 @@ testrunner will exit with an error to prevent acidentally missing test cases:
sample1.sampletests_discover_notests
Total: 0 tests, 0 failures, 0 errors and 0 skipped in 0.000 seconds.
True

You can explicitly specify which tests to run by providing a function that
returns a unittest.TestSuite in the test modules (the name of the function can
be configured with the --suite-name parameter, it defaults to 'test_suite'). If
no such function is present, testrunner will use all classes in the module that
inherit from unittest.TestCase as tests:

>>> import os, sys
>>> directory_with_tests = os.path.join(this_directory, 'testrunner-ex')

>>> from zope import testrunner

>>> defaults = [
... ]
>>> sys.argv = ['test',
... ]
>>> testrunner.run(defaults)
Running zope.testrunner.layer.UnitTests tests:
Set up zope.testrunner.layer.UnitTests in N.NNN seconds.
Ran 2 tests with 0 failures, 0 errors and 0 skipped in N.NNN seconds.
Tearing down left over layers:
Tear down zope.testrunner.layer.UnitTests in N.NNN seconds.
False

0 comments on commit 4330ad8

Please sign in to comment.