Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
93376a47
Commit
93376a47
authored
Aug 22, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More help to 'runner' script
parent
93eabad6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
neo/scripts/runner.py
neo/scripts/runner.py
+26
-4
No files found.
neo/scripts/runner.py
View file @
93376a47
...
...
@@ -23,7 +23,7 @@ import sys
import
neo
import
os
from
neo.tests
import
getTempDirectory
from
neo.tests
import
getTempDirectory
,
__dict__
as
neo_tests__dict__
from
neo.tests.benchmark
import
BenchmarkRunner
# list of test modules
...
...
@@ -258,9 +258,31 @@ class NeoTestRunner(unittest.TestResult):
class
TestRunner
(
BenchmarkRunner
):
def
add_options
(
self
,
parser
):
parser
.
add_option
(
'-f'
,
'--functional'
,
action
=
'store_true'
)
parser
.
add_option
(
'-u'
,
'--unit'
,
action
=
'store_true'
)
parser
.
add_option
(
'-z'
,
'--zodb'
,
action
=
'store_true'
)
parser
.
add_option
(
'-f'
,
'--functional'
,
action
=
'store_true'
,
help
=
'Functional tests'
)
parser
.
add_option
(
'-u'
,
'--unit'
,
action
=
'store_true'
,
help
=
'Unit & threaded tests'
)
parser
.
add_option
(
'-z'
,
'--zodb'
,
action
=
'store_true'
,
help
=
'ZODB test suite running on a NEO'
)
parser
.
format_epilog
=
lambda
_
:
"""
Environment Variables:
NEO_TESTS_ADAPTER Default is SQLite for threaded clusters,
MySQL otherwise.
MySQL specific:
NEO_DB_PREFIX default: %(DB_PREFIX)s
NEO_DB_ADMIN default: %(DB_ADMIN)s
NEO_DB_PASSWD default: %(DB_PASSWD)s
NEO_DB_USER default: %(DB_USER)s
ZODB tests:
NEO_TEST_ZODB_FUNCTIONAL Clusters are threaded by default. If true,
they are built like in functional tests.
NEO_TEST_ZODB_MASTERS default: 1
NEO_TEST_ZODB_PARTITIONS default: 1
NEO_TEST_ZODB_REPLICAS default: 0
NEO_TEST_ZODB_STORAGES default: 1
"""
%
neo_tests__dict__
def
load_options
(
self
,
options
,
args
):
if
not
(
options
.
unit
or
options
.
functional
or
options
.
zodb
or
args
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment