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
f109e5b0
Commit
f109e5b0
authored
Jun 21, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed order of arguments to test tasks so that the report
directory is created before it is cleaned.
parent
151aa1c0
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 @
f109e5b0
...
...
@@ -55,6 +55,7 @@ end
task
:clean_reports_dir
do
desc
"Clean coverage files, to ensure that we don't use stale data to generate reports."
# We delete the files but preserve the directory structure
# so that coverage.py has a place to put the reports.
sh
(
"find
#{
REPORT_DIR
}
-type f -delete"
)
...
...
@@ -82,7 +83,7 @@ TEST_TASK_DIRS = []
task
"test_acceptance_
#{
system
}
"
,
[
:harvest_args
]
=>
[
:clean_test_files
,
"
#{
system
}
:gather_assets:acceptance"
,
"fasttest_acceptance_
#{
system
}
"
]
desc
"Run acceptance tests without collectstatic"
task
"fasttest_acceptance_
#{
system
}
"
,
[
:harvest_args
]
=>
[
:clean_reports_dir
,
:predjango
,
report_dir
]
do
|
t
,
args
|
task
"fasttest_acceptance_
#{
system
}
"
,
[
:harvest_args
]
=>
[
report_dir
,
:clean_reports_dir
,
:predjango
]
do
|
t
,
args
|
args
.
with_defaults
(
:harvest_args
=>
''
)
run_acceptance_tests
(
system
,
report_dir
,
args
.
harvest_args
)
end
...
...
@@ -98,7 +99,7 @@ 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
}
"
=>
[
:clean_reports_dir
,
report
_dir
]
do
task
"test_
#{
lib
}
"
=>
[
report_dir
,
:clean_reports
_dir
]
do
ENV
[
'NOSE_XUNIT_FILE'
]
=
File
.
join
(
report_dir
,
"nosetests.xml"
)
cmd
=
"nosetests
#{
lib
}
"
test_sh
(
run_under_coverage
(
cmd
,
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