Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d426931e
Commit
d426931e
authored
Mar 29, 2016
by
Omar Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --save_screenshots option to paver test_bokchoy
parent
ac6749ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
pavelib/bok_choy.py
+3
-1
pavelib/utils/test/suites/bokchoy_suite.py
+3
-0
No files found.
pavelib/bok_choy.py
View file @
d426931e
...
...
@@ -30,7 +30,8 @@ BOKCHOY_OPTS = [
make_option
(
"-q"
,
"--quiet"
,
action
=
"store_const"
,
const
=
0
,
dest
=
"verbosity"
),
make_option
(
"-v"
,
"--verbosity"
,
action
=
"count"
,
dest
=
"verbosity"
),
make_option
(
"--pdb"
,
action
=
"store_true"
,
help
=
"Drop into debugger on failures or errors"
),
make_option
(
"--skip_firefox_version_validation"
,
action
=
'store_false'
,
dest
=
"validate_firefox_version"
)
make_option
(
"--skip_firefox_version_validation"
,
action
=
'store_false'
,
dest
=
"validate_firefox_version"
),
make_option
(
"--save_screenshots"
,
action
=
'store_true'
,
dest
=
"save_screenshots"
),
]
...
...
@@ -52,6 +53,7 @@ def parse_bokchoy_opts(options):
'extra_args'
:
getattr
(
options
,
'extra_args'
,
''
),
'pdb'
:
getattr
(
options
,
'pdb'
,
False
),
'test_dir'
:
getattr
(
options
,
'test_dir'
,
'tests'
),
'save_screenshots'
:
getattr
(
options
,
'save_screenshots'
,
False
),
}
...
...
pavelib/utils/test/suites/bokchoy_suite.py
View file @
d426931e
...
...
@@ -62,6 +62,7 @@ class BokChoyTestSuite(TestSuite):
self
.
a11y_file
=
Env
.
BOK_CHOY_A11Y_CUSTOM_RULES_FILE
self
.
imports_dir
=
kwargs
.
get
(
'imports_dir'
,
None
)
self
.
coveragerc
=
kwargs
.
get
(
'coveragerc'
,
None
)
self
.
save_screenshots
=
kwargs
.
get
(
'save_screenshots'
,
False
)
def
__enter__
(
self
):
super
(
BokChoyTestSuite
,
self
)
.
__enter__
()
...
...
@@ -234,6 +235,8 @@ class BokChoyTestSuite(TestSuite):
]
if
self
.
pdb
:
cmd
.
append
(
"--pdb"
)
if
self
.
save_screenshots
:
cmd
.
append
(
"--with-save-baseline"
)
cmd
.
append
(
self
.
extra_args
)
cmd
=
(
" "
)
.
join
(
cmd
)
...
...
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