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
67ccf1e3
Commit
67ccf1e3
authored
Sep 24, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move nose/django arguments for tests out of rake so that raw manage.py works when running tests
parent
316b4eee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
10 deletions
+25
-10
cms/envs/test.py
+10
-0
lms/envs/test.py
+13
-0
rakelib/tests.rake
+2
-10
No files found.
cms/envs/test.py
View file @
67ccf1e3
...
...
@@ -20,6 +20,16 @@ from warnings import filterwarnings
# Nose Test Runner
TEST_RUNNER
=
'django_nose.NoseTestSuiteRunner'
_system
=
'cms'
_report_dir
=
REPO_ROOT
/
'reports'
/
_system
_report_dir
.
makedirs_p
()
NOSE_ARGS
=
[
'--tests'
,
PROJECT_ROOT
/
'djangoapps'
,
COMMON_ROOT
/
'djangoapps'
,
'--id-file'
,
REPO_ROOT
/
'.testids'
/
_system
/
'noseids'
,
'--xunit-file'
,
_report_dir
/
'nosetests.xml'
,
]
TEST_ROOT
=
path
(
'test_root'
)
# Want static files in the same dir for running on jenkins.
...
...
lms/envs/test.py
View file @
67ccf1e3
...
...
@@ -17,6 +17,8 @@ import os
from
path
import
path
from
warnings
import
filterwarnings
os
.
environ
[
'DJANGO_LIVE_TEST_SERVER_ADDRESS'
]
=
'localhost:8000-9000'
# can't test start dates with this True, but on the other hand,
# can test everything else :)
MITX_FEATURES
[
'DISABLE_START_DATES'
]
=
True
...
...
@@ -43,6 +45,17 @@ SOUTH_TESTS_MIGRATE = False # To disable migrations and use syncdb instead
# Nose Test Runner
TEST_RUNNER
=
'django_nose.NoseTestSuiteRunner'
_system
=
'lms'
_report_dir
=
REPO_ROOT
/
'reports'
/
_system
_report_dir
.
makedirs_p
()
NOSE_ARGS
=
[
'--tests'
,
PROJECT_ROOT
/
'djangoapps'
,
COMMON_ROOT
/
'djangoapps'
,
'--id-file'
,
REPO_ROOT
/
'.testids'
/
_system
/
'noseids'
,
'--xunit-file'
,
_report_dir
/
'nosetests.xml'
,
]
# Local Directories
TEST_ROOT
=
path
(
"test_root"
)
# Want static files in the same dir for running on jenkins.
...
...
rakelib/tests.rake
View file @
67ccf1e3
...
...
@@ -17,16 +17,8 @@ def run_under_coverage(cmd, root)
end
def
run_tests
(
system
,
report_dir
,
test_id
=
nil
,
stop_on_failure
=
true
)
ENV
[
'NOSE_XUNIT_FILE'
]
=
File
.
join
(
report_dir
,
"nosetests.xml"
)
test_id_file
=
File
.
join
(
test_id_dir
(
system
),
"noseids"
)
dirs
=
Dir
[
"common/djangoapps/*"
]
+
Dir
[
"
#{
system
}
/djangoapps/*"
]
test_id
=
dirs
.
join
(
' '
)
if
test_id
.
nil?
or
test_id
==
''
cmd
=
django_admin
(
system
,
:test
,
'test'
,
'--logging-clear-handlers'
,
'--liveserver=localhost:8000-9000'
,
"--id-file=
#{
test_id_file
}
"
,
test_id
)
test_id
=
''
if
test_id
.
nil?
cmd
=
django_admin
(
system
,
:test
,
'test'
,
test_id
)
test_sh
(
run_under_coverage
(
cmd
,
system
))
end
...
...
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