Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
c09a4c47
Commit
c09a4c47
authored
9 years ago
by
Omar Khan
Committed by
Adam Palay
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add --save_screenshots option to paver test_bokchoy
parent
0fd06e80
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pavelib/bok_choy.py
+3
-1
3 additions, 1 deletion
pavelib/bok_choy.py
pavelib/utils/test/suites/bokchoy_suite.py
+3
-0
3 additions, 0 deletions
pavelib/utils/test/suites/bokchoy_suite.py
with
6 additions
and
1 deletion
pavelib/bok_choy.py
+
3
−
1
View file @
c09a4c47
...
...
@@ -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
),
}
...
...
This diff is collapsed.
Click to expand it.
pavelib/utils/test/suites/bokchoy_suite.py
+
3
−
0
View file @
c09a4c47
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment