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
69848478
Commit
69848478
authored
Jun 07, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add reports for library tests
parent
04262027
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
rakefile
+3
-3
No files found.
rakefile
View file @
69848478
...
@@ -74,13 +74,13 @@ end
...
@@ -74,13 +74,13 @@ end
Dir
[
"common/lib/*"
].
each
do
|
lib
|
Dir
[
"common/lib/*"
].
each
do
|
lib
|
task_name
=
"test_
#{
lib
}
"
task_name
=
"test_
#{
lib
}
"
report_dir
=
File
.
join
(
REPORT_DIR
,
task_name
)
report_dir
=
File
.
join
(
REPORT_DIR
,
task_name
.
gsub
(
'/'
,
'_'
)
)
directory
report_dir
directory
report_dir
desc
"Run tests for common lib
#{
lib
}
"
desc
"Run tests for common lib
#{
lib
}
"
task
task_name
do
task
task_name
=>
report_dir
do
ENV
[
'NOSE_XUNIT_FILE'
]
=
File
.
join
(
report_dir
,
"nosetests.xml"
)
ENV
[
'NOSE_XUNIT_FILE'
]
=
File
.
join
(
report_dir
,
"nosetests.xml"
)
sh
(
"nosetests
#{
lib
}
"
)
sh
(
"nosetests
#{
lib
}
--cover-erase --with-xunit --with-xcoverage --cover-html --cover-inclusive --cover-package
#{
File
.
basename
(
lib
)
}
"
)
end
end
task
:test
=>
task_name
task
:test
=>
task_name
end
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