Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
ed75d7ed
Commit
ed75d7ed
authored
Jul 27, 2004
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement -C as shortcut for --config-file.
parent
1ff2ddfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
test.py
test.py
+5
-3
No files found.
test.py
View file @
ed75d7ed
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
#
#
##############################################################################
##############################################################################
"""
"""
test.py [-abcdDfgGhLmprtTuv] [modfilter [testfilter]]
test.py [-abc
C
dDfgGhLmprtTuv] [modfilter [testfilter]]
Find and run tests written using the unittest module.
Find and run tests written using the unittest module.
...
@@ -49,6 +49,7 @@ named .testinfo, it will not be searched for tests. Really.)
...
@@ -49,6 +49,7 @@ named .testinfo, it will not be searched for tests. Really.)
-c
-c
Use pychecker
Use pychecker
-C filename
--config-file filename
--config-file filename
Configure Zope by loading the specified configuration file (zope.conf).
Configure Zope by loading the specified configuration file (zope.conf).
...
@@ -91,6 +92,7 @@ named .testinfo, it will not be searched for tests. Really.)
...
@@ -91,6 +92,7 @@ named .testinfo, it will not be searched for tests. Really.)
Search for tests starting in the specified start directory
Search for tests starting in the specified start directory
(useful for testing components being developed outside the main
(useful for testing components being developed outside the main
"src" or "build" trees).
"src" or "build" trees).
Note: This directory will be prepended to sys.path.
--keepbytecode
--keepbytecode
Do not delete all stale bytecode before running tests
Do not delete all stale bytecode before running tests
...
@@ -732,7 +734,7 @@ def process_args(argv=None):
...
@@ -732,7 +734,7 @@ def process_args(argv=None):
import_testing
=
False
import_testing
=
False
try
:
try
:
opts
,
args
=
getopt
.
getopt
(
argv
[
1
:],
"a:bcdDfg:G:hLmprtTuv"
,
opts
,
args
=
getopt
.
getopt
(
argv
[
1
:],
"a:bc
C:
dDfg:G:hLmprtTuv"
,
[
"all"
,
"help"
,
"libdir="
,
"times="
,
[
"all"
,
"help"
,
"libdir="
,
"times="
,
"keepbytecode"
,
"dir="
,
"keepbytecode"
,
"dir="
,
"config-file="
,
"import-testing"
])
"config-file="
,
"import-testing"
])
...
@@ -802,7 +804,7 @@ def process_args(argv=None):
...
@@ -802,7 +804,7 @@ def process_args(argv=None):
timesfn
=
v
timesfn
=
v
elif
k
==
'--dir'
:
elif
k
==
'--dir'
:
test_dir
=
v
test_dir
=
v
elif
k
==
'--config-file'
:
elif
k
==
'--config-file'
or
k
==
'-C'
:
config_file
=
v
config_file
=
v
elif
k
==
'--import-testing'
:
elif
k
==
'--import-testing'
:
import_testing
=
True
import_testing
=
True
...
...
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