Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
erp5
Commits
cfc14182
Commit
cfc14182
authored
Jul 15, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DEBUG: change WORKFLOW test suite to run tests related to Workflow
parent
c4f86260
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
32 deletions
+8
-32
tests/__init__.py
tests/__init__.py
+8
-32
No files found.
tests/__init__.py
View file @
cfc14182
...
...
@@ -63,38 +63,6 @@ class PERF(_ERP5):
def
getTestList
(
self
):
return
[
x
for
x
in
self
.
_getAllTestList
()
if
x
.
find
(
'Performance'
)
>
0
]
class
WORKFLOW
(
_ERP5
):
# new test suite running a single test "testUrl"
# (to be used instead of ERP5 class, which run all tests)
mysql_db_count
=
3
def
getTestList
(
self
):
return
[
x
for
x
in
self
.
_getAllTestList
()
if
x
.
find
(
'testUrl'
)
>
0
]
def
run
(
self
,
full_test
):
test
=
':'
in
full_test
and
full_test
.
split
(
':'
)[
1
]
or
full_test
return
super
(
WORKFLOW
,
self
).
run
(
full_test
)
def
_updateFunctionalTestResponse
(
self
,
status_dict
):
""" Convert the Unit Test output into more accurate information
related to funcional test run.
"""
# Parse relevant information to update response information
try
:
summary
,
html_test_result
=
status_dict
[
'stderr'
].
split
(
"-"
*
79
)[
1
:
3
]
except
ValueError
:
# In case of error when parse the file, preserve the original
# informations. This prevents we have unfinished tests.
return
status_dict
status_dict
[
'html_test_result'
]
=
html_test_result
search
=
self
.
FTEST_PASS_FAIL_RE
.
search
(
summary
)
if
search
:
group_dict
=
search
.
groupdict
()
status_dict
[
'failure_count'
]
=
int
(
group_dict
[
'failures'
])
status_dict
[
'test_count'
]
=
int
(
group_dict
[
'total'
])
status_dict
[
'skip_count'
]
=
int
(
group_dict
[
'expected_failure'
])
return
status_dict
class
CloudPERF
(
_ERP5
):
...
...
@@ -155,6 +123,14 @@ class ERP5(_ERP5):
status_dict
[
'skip_count'
]
=
int
(
group_dict
[
'expected_failure'
])
return
status_dict
class
WORKFLOW
(
ERP5
):
# new test suite running a few test related to Workflow
# (to be used instead of ERP5 class, which run all tests)
def
getTestList
(
self
):
return
[
'testERP5Workflow'
,
'testERP5Type'
,
'erp5_core_test:testSQLCachedWorklist'
,
'erp5_core_test:testWorklist'
,
'erp5_workflow_test:testWorkflowAndDCWorkflow'
]
class
ERP5_simulation
(
_ERP5
):
...
...
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