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
c7df52c5
Commit
c7df52c5
authored
Jul 29, 2014
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable sharding of bok-choy tests
parent
54d60fc1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
pavelib/bok_choy.py
+3
-1
pavelib/utils/test/suites/bokchoy_suite.py
+2
-0
scripts/all-tests.sh
+9
-1
No files found.
pavelib/bok_choy.py
View file @
c7df52c5
...
...
@@ -20,6 +20,7 @@ __test__ = False # do not collect
@cmdopts
([
(
'test_spec='
,
't'
,
'Specific test to run'
),
(
'fasttest'
,
'a'
,
'Skip some setup'
),
(
'extra_args='
,
'e'
,
'adds as extra args to the test command'
),
make_option
(
"--verbose"
,
action
=
"store_const"
,
const
=
2
,
dest
=
"verbosity"
),
make_option
(
"-q"
,
"--quiet"
,
action
=
"store_const"
,
const
=
0
,
dest
=
"verbosity"
),
make_option
(
"-v"
,
"--verbosity"
,
action
=
"count"
,
dest
=
"verbosity"
),
...
...
@@ -39,7 +40,8 @@ def test_bokchoy(options):
opts
=
{
'test_spec'
:
getattr
(
options
,
'test_spec'
,
None
),
'fasttest'
:
getattr
(
options
,
'fasttest'
,
False
),
'verbosity'
:
getattr
(
options
,
'verbosity'
,
2
)
'verbosity'
:
getattr
(
options
,
'verbosity'
,
2
),
'extra_args'
:
getattr
(
options
,
'extra_args'
,
''
),
}
test_suite
=
BokChoyTestSuite
(
'bok-choy'
,
**
opts
)
...
...
pavelib/utils/test/suites/bokchoy_suite.py
View file @
c7df52c5
...
...
@@ -29,6 +29,7 @@ class BokChoyTestSuite(TestSuite):
self
.
fasttest
=
kwargs
.
get
(
'fasttest'
,
False
)
self
.
test_spec
=
kwargs
.
get
(
'test_spec'
,
None
)
self
.
verbosity
=
kwargs
.
get
(
'verbosity'
,
2
)
self
.
extra_args
=
kwargs
.
get
(
'extra_args'
,
''
)
def
__enter__
(
self
):
super
(
BokChoyTestSuite
,
self
)
.
__enter__
()
...
...
@@ -97,6 +98,7 @@ class BokChoyTestSuite(TestSuite):
"--with-flaky"
,
"--xunit-file={}"
.
format
(
self
.
xunit_report
),
"--verbosity={}"
.
format
(
self
.
verbosity
),
self
.
extra_args
,
]
cmd
=
(
" "
)
.
join
(
cmd
)
...
...
scripts/all-tests.sh
View file @
c7df52c5
...
...
@@ -114,7 +114,15 @@ END
;;
"bok-choy"
)
rake
test
:bok_choy
case
"
$SHARD
"
in
"1"
)
rake
test
:bok_choy[
"-a shard_1"
]
;;
"2"
)
rake
test
:bok_choy[
"-a '!shard_1'"
]
;;
esac
rake
test
:bok_choy:coverage
;;
...
...
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