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
2690c044
Commit
2690c044
authored
Jun 23, 2016
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only generate xunit files during CI builds, so that pudb works during development
parent
6b61bc44
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
34 deletions
+26
-34
pavelib/paver_tests/test_paver_bok_choy_cmds.py
+0
-4
pavelib/utils/test/suites/acceptance_suite.py
+1
-2
pavelib/utils/test/suites/bokchoy_suite.py
+0
-2
pavelib/utils/test/suites/nose_suite.py
+0
-2
scripts/accessibility-tests.sh
+1
-1
scripts/circle-ci-tests.sh
+6
-6
scripts/generic-ci-tests.sh
+18
-16
setup.cfg
+0
-1
No files found.
pavelib/paver_tests/test_paver_bok_choy_cmds.py
View file @
2690c044
...
@@ -38,7 +38,6 @@ class TestPaverBokChoyCmd(unittest.TestCase):
...
@@ -38,7 +38,6 @@ class TestPaverBokChoyCmd(unittest.TestCase):
"VERIFY_XSS='{}'"
.
format
(
verify_xss
),
"VERIFY_XSS='{}'"
.
format
(
verify_xss
),
"nosetests"
,
"nosetests"
,
"{}/common/test/acceptance/{}"
.
format
(
REPO_DIR
,
name
),
"{}/common/test/acceptance/{}"
.
format
(
REPO_DIR
,
name
),
"--with-xunit"
,
"--xunit-file={}/reports/bok_choy{}/xunit.xml"
.
format
(
REPO_DIR
,
shard_str
),
"--xunit-file={}/reports/bok_choy{}/xunit.xml"
.
format
(
REPO_DIR
,
shard_str
),
"--verbosity=2"
,
"--verbosity=2"
,
]
]
...
@@ -119,7 +118,6 @@ class TestPaverBokChoyCmd(unittest.TestCase):
...
@@ -119,7 +118,6 @@ class TestPaverBokChoyCmd(unittest.TestCase):
Using 1 process means paver should ask for the traditional xunit plugin for plugin results
Using 1 process means paver should ask for the traditional xunit plugin for plugin results
"""
"""
expected_verbosity_command
=
[
expected_verbosity_command
=
[
"--with-xunit"
,
"--xunit-file={repo_dir}/reports/bok_choy{shard_str}/xunit.xml"
.
format
(
"--xunit-file={repo_dir}/reports/bok_choy{shard_str}/xunit.xml"
.
format
(
repo_dir
=
REPO_DIR
,
repo_dir
=
REPO_DIR
,
shard_str
=
'/shard_'
+
self
.
shard
if
self
.
shard
else
''
shard_str
=
'/shard_'
+
self
.
shard
if
self
.
shard
else
''
...
@@ -136,7 +134,6 @@ class TestPaverBokChoyCmd(unittest.TestCase):
...
@@ -136,7 +134,6 @@ class TestPaverBokChoyCmd(unittest.TestCase):
"""
"""
process_count
=
2
process_count
=
2
expected_verbosity_command
=
[
expected_verbosity_command
=
[
"--with-xunitmp"
,
"--xunitmp-file={repo_dir}/reports/bok_choy{shard_str}/xunit.xml"
.
format
(
"--xunitmp-file={repo_dir}/reports/bok_choy{shard_str}/xunit.xml"
.
format
(
repo_dir
=
REPO_DIR
,
repo_dir
=
REPO_DIR
,
shard_str
=
'/shard_'
+
self
.
shard
if
self
.
shard
else
''
,
shard_str
=
'/shard_'
+
self
.
shard
if
self
.
shard
else
''
,
...
@@ -154,7 +151,6 @@ class TestPaverBokChoyCmd(unittest.TestCase):
...
@@ -154,7 +151,6 @@ class TestPaverBokChoyCmd(unittest.TestCase):
"""
"""
process_count
=
3
process_count
=
3
expected_verbosity_command
=
[
expected_verbosity_command
=
[
"--with-xunitmp"
,
"--xunitmp-file={repo_dir}/reports/bok_choy{shard_str}/xunit.xml"
.
format
(
"--xunitmp-file={repo_dir}/reports/bok_choy{shard_str}/xunit.xml"
.
format
(
repo_dir
=
REPO_DIR
,
repo_dir
=
REPO_DIR
,
shard_str
=
'/shard_'
+
self
.
shard
if
self
.
shard
else
''
,
shard_str
=
'/shard_'
+
self
.
shard
if
self
.
shard
else
''
,
...
...
pavelib/utils/test/suites/acceptance_suite.py
View file @
2690c044
...
@@ -34,8 +34,7 @@ class AcceptanceTest(TestSuite):
...
@@ -34,8 +34,7 @@ class AcceptanceTest(TestSuite):
def
cmd
(
self
):
def
cmd
(
self
):
report_file
=
self
.
report_dir
/
"{}.xml"
.
format
(
self
.
system
)
report_file
=
self
.
report_dir
/
"{}.xml"
.
format
(
self
.
system
)
report_args
=
[
"--with-xunit"
,
"--xunit-file {}"
.
format
(
report_file
)]
report_args
=
[
"--xunit-file {}"
.
format
(
report_file
)]
return
[
return
[
"DEFAULT_STORE={}"
.
format
(
self
.
default_store
),
"DEFAULT_STORE={}"
.
format
(
self
.
default_store
),
"./manage.py"
,
"./manage.py"
,
...
...
pavelib/utils/test/suites/bokchoy_suite.py
View file @
2690c044
...
@@ -133,7 +133,6 @@ class BokChoyTestSuite(TestSuite):
...
@@ -133,7 +133,6 @@ class BokChoyTestSuite(TestSuite):
if
self
.
num_processes
!=
1
:
if
self
.
num_processes
!=
1
:
# Construct "multiprocess" nosetest command
# Construct "multiprocess" nosetest command
command
=
[
command
=
[
"--with-xunitmp"
,
"--xunitmp-file={}"
.
format
(
self
.
xunit_report
),
"--xunitmp-file={}"
.
format
(
self
.
xunit_report
),
"--processes={}"
.
format
(
self
.
num_processes
),
"--processes={}"
.
format
(
self
.
num_processes
),
"--no-color"
,
"--no-color"
,
...
@@ -142,7 +141,6 @@ class BokChoyTestSuite(TestSuite):
...
@@ -142,7 +141,6 @@ class BokChoyTestSuite(TestSuite):
else
:
else
:
command
=
[
command
=
[
"--with-xunit"
,
"--xunit-file={}"
.
format
(
self
.
xunit_report
),
"--xunit-file={}"
.
format
(
self
.
xunit_report
),
"--verbosity={}"
.
format
(
self
.
verbosity
),
"--verbosity={}"
.
format
(
self
.
verbosity
),
]
]
...
...
pavelib/utils/test/suites/nose_suite.py
View file @
2690c044
...
@@ -153,7 +153,6 @@ class SystemTestSuite(NoseTestSuite):
...
@@ -153,7 +153,6 @@ class SystemTestSuite(NoseTestSuite):
]
+
self
.
test_options_flags
+
[
]
+
self
.
test_options_flags
+
[
'--settings=test'
,
'--settings=test'
,
self
.
extra_args
,
self
.
extra_args
,
'--with-xunitmp'
,
'--xunitmp-file={}'
.
format
(
self
.
report_dir
/
"nosetests.xml"
),
'--xunitmp-file={}'
.
format
(
self
.
report_dir
/
"nosetests.xml"
),
'--with-database-isolation'
,
'--with-database-isolation'
,
]
]
...
@@ -217,7 +216,6 @@ class LibTestSuite(NoseTestSuite):
...
@@ -217,7 +216,6 @@ class LibTestSuite(NoseTestSuite):
"--id-file={}"
.
format
(
self
.
test_ids
),
"--id-file={}"
.
format
(
self
.
test_ids
),
self
.
test_id
,
self
.
test_id
,
]
+
self
.
test_options_flags
+
[
]
+
self
.
test_options_flags
+
[
"--with-xunit"
,
"--xunit-file={}"
.
format
(
self
.
xunit_report
),
"--xunit-file={}"
.
format
(
self
.
xunit_report
),
self
.
extra_args
,
self
.
extra_args
,
"--verbosity={}"
.
format
(
self
.
verbosity
),
"--verbosity={}"
.
format
(
self
.
verbosity
),
...
...
scripts/accessibility-tests.sh
View file @
2690c044
...
@@ -16,7 +16,7 @@ echo "Setting up for accessibility tests..."
...
@@ -16,7 +16,7 @@ echo "Setting up for accessibility tests..."
source
scripts/jenkins-common.sh
source
scripts/jenkins-common.sh
echo
"Running explicit accessibility tests..."
echo
"Running explicit accessibility tests..."
SELENIUM_BROWSER
=
phantomjs paver test_a11y
SELENIUM_BROWSER
=
phantomjs paver test_a11y
--with-xunitmp
echo
"Generating coverage report..."
echo
"Generating coverage report..."
paver a11y_coverage
paver a11y_coverage
...
...
scripts/circle-ci-tests.sh
View file @
2690c044
...
@@ -37,11 +37,11 @@ if [ "$CIRCLE_NODE_TOTAL" == "1" ] ; then
...
@@ -37,11 +37,11 @@ if [ "$CIRCLE_NODE_TOTAL" == "1" ] ; then
echo
"via the CircleCI UI and adjust scripts/circle-ci-tests.sh to match."
echo
"via the CircleCI UI and adjust scripts/circle-ci-tests.sh to match."
echo
"Running tests for common/lib/ and pavelib/"
echo
"Running tests for common/lib/ and pavelib/"
paver test_lib
--with-flaky
--cov-args
=
"-p"
||
EXIT
=
1
paver test_lib
--with-flaky
--cov-args
=
"-p"
--with-xunitmp
||
EXIT
=
1
echo
"Running python tests for Studio"
echo
"Running python tests for Studio"
paver test_system
-s
cms
--with-flaky
--cov-args
=
"-p"
||
EXIT
=
1
paver test_system
-s
cms
--with-flaky
--cov-args
=
"-p"
--with-xunitmp
||
EXIT
=
1
echo
"Running python tests for lms"
echo
"Running python tests for lms"
paver test_system
-s
lms
--with-flaky
--cov-args
=
"-p"
||
EXIT
=
1
paver test_system
-s
lms
--with-flaky
--cov-args
=
"-p"
--with-xunitmp
||
EXIT
=
1
exit
$EXIT
exit
$EXIT
else
else
...
@@ -74,15 +74,15 @@ else
...
@@ -74,15 +74,15 @@ else
;;
;;
1
)
# run all of the lms unit tests
1
)
# run all of the lms unit tests
paver test_system
-s
lms
--with-flaky
--cov-args
=
"-p"
paver test_system
-s
lms
--with-flaky
--cov-args
=
"-p"
--with-xunitmp
;;
;;
2
)
# run all of the cms unit tests
2
)
# run all of the cms unit tests
paver test_system
-s
cms
--with-flaky
--cov-args
=
"-p"
paver test_system
-s
cms
--with-flaky
--cov-args
=
"-p"
--with-xunitmp
;;
;;
3
)
# run the commonlib unit tests
3
)
# run the commonlib unit tests
paver test_lib
--with-flaky
--cov-args
=
"-p"
paver test_lib
--with-flaky
--cov-args
=
"-p"
--with-xunitmp
;;
;;
*
)
*
)
...
...
scripts/generic-ci-tests.sh
View file @
2690c044
...
@@ -99,7 +99,7 @@ case "$TEST_SUITE" in
...
@@ -99,7 +99,7 @@ case "$TEST_SUITE" in
;;
;;
"lms-unit"
)
"lms-unit"
)
PAVER_ARGS
=
"--with-flaky --processes=-1 --cov-args='-p' -v"
PAVER_ARGS
=
"--with-flaky --processes=-1 --cov-args='-p' -v
--with-xunitmp
"
case
"
$SHARD
"
in
case
"
$SHARD
"
in
"all"
)
"all"
)
paver test_system
-s
lms
$PAVER_ARGS
paver test_system
-s
lms
$PAVER_ARGS
...
@@ -128,11 +128,11 @@ case "$TEST_SUITE" in
...
@@ -128,11 +128,11 @@ case "$TEST_SUITE" in
;;
;;
"cms-unit"
)
"cms-unit"
)
paver test_system
-s
cms
--with-flaky
--cov-args
=
"-p"
-v
paver test_system
-s
cms
--with-flaky
--cov-args
=
"-p"
-v
--with-xunitmp
;;
;;
"commonlib-unit"
)
"commonlib-unit"
)
paver test_lib
--with-flaky
--cov-args
=
"-p"
-v
paver test_lib
--with-flaky
--cov-args
=
"-p"
-v
--with-xunitmp
;;
;;
"js-unit"
)
"js-unit"
)
...
@@ -142,7 +142,7 @@ case "$TEST_SUITE" in
...
@@ -142,7 +142,7 @@ case "$TEST_SUITE" in
"commonlib-js-unit"
)
"commonlib-js-unit"
)
paver test_js
--coverage
--skip-clean
||
{
EXIT
=
1
;
}
paver test_js
--coverage
--skip-clean
||
{
EXIT
=
1
;
}
paver test_lib
--skip-clean
--with-flaky
--cov-args
=
"-p"
||
{
EXIT
=
1
;
}
paver test_lib
--skip-clean
--with-flaky
--cov-args
=
"-p"
--with-xunitmp
||
{
EXIT
=
1
;
}
# This is to ensure that the build status of the shard is properly set.
# This is to ensure that the build status of the shard is properly set.
# Because we are running two paver commands in a row, we need to capture
# Because we are running two paver commands in a row, we need to capture
...
@@ -159,11 +159,11 @@ case "$TEST_SUITE" in
...
@@ -159,11 +159,11 @@ case "$TEST_SUITE" in
;;
;;
"lms-acceptance"
)
"lms-acceptance"
)
paver test_acceptance
-s
lms
-vvv
paver test_acceptance
-s
lms
-vvv
--with-xunit
;;
;;
"cms-acceptance"
)
"cms-acceptance"
)
paver test_acceptance
-s
cms
-vvv
paver test_acceptance
-s
cms
-vvv
--with-xunit
;;
;;
"bok-choy"
)
"bok-choy"
)
...
@@ -174,46 +174,48 @@ case "$TEST_SUITE" in
...
@@ -174,46 +174,48 @@ case "$TEST_SUITE" in
cp
-R
$HOME
/firefox/ firefox/
cp
-R
$HOME
/firefox/ firefox/
export
SELENIUM_FIREFOX_PATH
=
firefox/firefox
export
SELENIUM_FIREFOX_PATH
=
firefox/firefox
PAVER_ARGS
=
"-n
$NUMBER_OF_BOKCHOY_THREADS
--with-flaky --with-xunitmp"
case
"
$SHARD
"
in
case
"
$SHARD
"
in
"all"
)
"all"
)
paver test_bokchoy
paver test_bokchoy
$PAVER_ARGS
;;
;;
"1"
)
"1"
)
paver test_bokchoy
-
n
$NUMBER_OF_BOKCHOY_THREADS
--attr
=
'shard_1'
--with-flaky
paver test_bokchoy
-
-attr
=
'shard_1'
$PAVER_ARGS
;;
;;
"2"
)
"2"
)
paver test_bokchoy
-
n
$NUMBER_OF_BOKCHOY_THREADS
--attr
=
'shard_2'
--with-flaky
paver test_bokchoy
-
-attr
=
'shard_2'
$PAVER_ARGS
;;
;;
"3"
)
"3"
)
paver test_bokchoy
-
n
$NUMBER_OF_BOKCHOY_THREADS
--attr
=
'shard_3'
--with-flaky
paver test_bokchoy
-
-attr
=
'shard_3'
$PAVER_ARGS
;;
;;
"4"
)
"4"
)
paver test_bokchoy
-
n
$NUMBER_OF_BOKCHOY_THREADS
--attr
=
'shard_4'
--with-flaky
paver test_bokchoy
-
-attr
=
'shard_4'
$PAVER_ARGS
;;
;;
"5"
)
"5"
)
paver test_bokchoy
-
n
$NUMBER_OF_BOKCHOY_THREADS
--attr
=
'shard_5'
--with-flaky
paver test_bokchoy
-
-attr
=
'shard_5'
$PAVER_ARGS
;;
;;
"6"
)
"6"
)
paver test_bokchoy
-
n
$NUMBER_OF_BOKCHOY_THREADS
--attr
=
'shard_6'
--with-flaky
paver test_bokchoy
-
-attr
=
'shard_6'
$PAVER_ARGS
;;
;;
"7"
)
"7"
)
paver test_bokchoy
-
n
$NUMBER_OF_BOKCHOY_THREADS
--attr
=
'shard_7'
--with-flaky
paver test_bokchoy
-
-attr
=
'shard_7'
$PAVER_ARGS
;;
;;
"8"
)
"8"
)
paver test_bokchoy
-
n
$NUMBER_OF_BOKCHOY_THREADS
--attr
=
'shard_8'
--with-flaky
paver test_bokchoy
-
-attr
=
'shard_8'
$PAVER_ARGS
;;
;;
"9"
)
"9"
)
paver test_bokchoy
-
n
$NUMBER_OF_BOKCHOY_THREADS
--attr
=
'shard_1=False,shard_2=False,shard_3=False,shard_4=False,shard_5=False,shard_6=False,shard_7=False,shard_8=False,a11y=False'
--with-flaky
paver test_bokchoy
-
-attr
=
'shard_1=False,shard_2=False,shard_3=False,shard_4=False,shard_5=False,shard_6=False,shard_7=False,shard_8=False,a11y=False'
$PAVER_ARGS
;;
;;
# Default case because if we later define another bok-choy shard on Jenkins
# Default case because if we later define another bok-choy shard on Jenkins
...
...
setup.cfg
View file @
2690c044
[nosetests]
[nosetests]
logging-clear-handlers=1
logging-clear-handlers=1
with-xunitmp=1
with-ignore-docstrings=1
with-ignore-docstrings=1
exclude-dir=lms/envs
exclude-dir=lms/envs
cms/envs
cms/envs
...
...
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