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
8d4c2af9
Commit
8d4c2af9
authored
Jun 27, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Teach rake test_$lib to understand specific test names
parent
894d44a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
rakelib/tests.rake
+3
-2
No files found.
rakelib/tests.rake
View file @
8d4c2af9
...
...
@@ -99,9 +99,10 @@ Dir["common/lib/*"].select{|lib| File.directory?(lib)}.each do |lib|
report_dir
=
report_dir_path
(
lib
)
desc
"Run tests for common lib
#{
lib
}
"
task
"test_
#{
lib
}
"
=>
[
report_dir
,
:clean_reports_dir
]
do
task
"test_
#{
lib
}
"
,
[
:test_id
]
=>
[
report_dir
,
:clean_reports_dir
]
do
|
t
,
args
|
args
.
with_defaults
(
:test_id
=>
lib
)
ENV
[
'NOSE_XUNIT_FILE'
]
=
File
.
join
(
report_dir
,
"nosetests.xml"
)
cmd
=
"nosetests
#{
lib
}
"
cmd
=
"nosetests
#{
args
.
test_id
}
"
test_sh
(
run_under_coverage
(
cmd
,
lib
))
end
TEST_TASK_DIRS
<<
lib
...
...
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