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
54ea98d2
Commit
54ea98d2
authored
11 years ago
by
Will Daly
Browse files
Options
Downloads
Plain Diff
Merge pull request #1219 from edx/will/run-individual-tests
Allow rake test to run individual tests again
parents
2d17c00e
b0878d3d
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cms/envs/test.py
+0
-1
0 additions, 1 deletion
cms/envs/test.py
lms/envs/test.py
+0
-1
0 additions, 1 deletion
lms/envs/test.py
rakelib/tests.rake
+13
-1
13 additions, 1 deletion
rakelib/tests.rake
with
13 additions
and
3 deletions
cms/envs/test.py
+
0
−
1
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
'
,
]
...
...
This diff is collapsed.
Click to expand it.
lms/envs/test.py
+
0
−
1
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
'
,
]
...
...
This diff is collapsed.
Click to expand it.
rakelib/tests.rake
+
13
−
1
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
...
...
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