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
54ea98d2
Commit
54ea98d2
authored
Oct 04, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1219 from edx/will/run-individual-tests
Allow rake test to run individual tests again
parents
2d17c00e
b0878d3d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
cms/envs/test.py
+0
-1
lms/envs/test.py
+0
-1
rakelib/tests.rake
+13
-1
No files found.
cms/envs/test.py
View file @
54ea98d2
...
...
@@ -25,7 +25,6 @@ _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'
,
]
...
...
lms/envs/test.py
View file @
54ea98d2
...
...
@@ -51,7 +51,6 @@ _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'
,
]
...
...
rakelib/tests.rake
View file @
54ea98d2
...
...
@@ -17,7 +17,19 @@ def run_under_coverage(cmd, root)
end
def
run_tests
(
system
,
report_dir
,
test_id
=
nil
,
stop_on_failure
=
true
)
test_id
=
''
if
test_id
.
nil?
# If no test id is provided, we need to limit the test runner
# to the Djangoapps we want to test. Otherwise, it will
# run tests on all installed packages.
if
test_id
.
nil?
test_id
=
"
#{
system
}
/djangoapps common/djangoapps"
# Handle "--failed" as a special case: we want to re-run only
# the tests that failed within our Django apps
elsif
test_id
==
'--failed'
test_id
=
"
#{
system
}
/djangoapps common/djangoapps --failed"
end
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