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
18c1bcdf
Commit
18c1bcdf
authored
Jun 27, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #283 from edx/will/recover-jasmine-test-results
Fix: deleting JS test reports in Jenkins
parents
894d44a0
ed57e7e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
rakelib/jasmine.rake
+5
-5
rakelib/tests.rake
+1
-1
No files found.
rakelib/jasmine.rake
View file @
18c1bcdf
...
@@ -80,7 +80,7 @@ end
...
@@ -80,7 +80,7 @@ end
namespace
:jasmine
do
namespace
:jasmine
do
namespace
system
do
namespace
system
do
desc
"Open jasmine tests for
#{
system
}
in your default browser"
desc
"Open jasmine tests for
#{
system
}
in your default browser"
task
:browser
do
task
:browser
=>
[
:clean_reports_dir
]
do
Rake
::
Task
[
:assets
].
invoke
(
system
,
'jasmine'
)
Rake
::
Task
[
:assets
].
invoke
(
system
,
'jasmine'
)
django_for_jasmine
(
system
,
true
)
do
|
jasmine_url
|
django_for_jasmine
(
system
,
true
)
do
|
jasmine_url
|
jasmine_browser
(
jasmine_url
)
jasmine_browser
(
jasmine_url
)
...
@@ -88,7 +88,7 @@ end
...
@@ -88,7 +88,7 @@ end
end
end
desc
"Open jasmine tests for
#{
system
}
in your default browser, and dynamically recompile coffeescript"
desc
"Open jasmine tests for
#{
system
}
in your default browser, and dynamically recompile coffeescript"
task
:'browser:watch'
=>
:'assets:coffee:_watch'
do
task
:'browser:watch'
=>
[
:clean_reports_dir
,
:'assets:coffee:_watch'
]
do
django_for_jasmine
(
system
,
true
)
do
|
jasmine_url
|
django_for_jasmine
(
system
,
true
)
do
|
jasmine_url
|
jasmine_browser
(
jasmine_url
,
jitter
=
0
,
wait
=
0
)
jasmine_browser
(
jasmine_url
,
jitter
=
0
,
wait
=
0
)
end
end
...
@@ -97,7 +97,7 @@ end
...
@@ -97,7 +97,7 @@ end
end
end
desc
"Use phantomjs to run jasmine tests for
#{
system
}
from the console"
desc
"Use phantomjs to run jasmine tests for
#{
system
}
from the console"
task
:phantomjs
do
task
:phantomjs
=>
[
:clean_reports_dir
]
do
Rake
::
Task
[
:assets
].
invoke
(
system
,
'jasmine'
)
Rake
::
Task
[
:assets
].
invoke
(
system
,
'jasmine'
)
phantomjs
=
ENV
[
'PHANTOMJS_PATH'
]
||
'phantomjs'
phantomjs
=
ENV
[
'PHANTOMJS_PATH'
]
||
'phantomjs'
django_for_jasmine
(
system
,
false
)
do
|
jasmine_url
|
django_for_jasmine
(
system
,
false
)
do
|
jasmine_url
|
...
@@ -122,7 +122,7 @@ static_js_dirs.each do |dir|
...
@@ -122,7 +122,7 @@ static_js_dirs.each do |dir|
namespace
:jasmine
do
namespace
:jasmine
do
namespace
dir
do
namespace
dir
do
desc
"Open jasmine tests for
#{
dir
}
in your default browser"
desc
"Open jasmine tests for
#{
dir
}
in your default browser"
task
:browser
do
task
:browser
=>
[
:clean_reports_dir
]
do
# We need to use either CMS or LMS to preprocess files. Use LMS by default
# We need to use either CMS or LMS to preprocess files. Use LMS by default
Rake
::
Task
[
'assets:coffee'
].
invoke
(
'lms'
,
'jasmine'
)
Rake
::
Task
[
'assets:coffee'
].
invoke
(
'lms'
,
'jasmine'
)
template_jasmine_runner
(
dir
)
do
|
f
|
template_jasmine_runner
(
dir
)
do
|
f
|
...
@@ -131,7 +131,7 @@ static_js_dirs.each do |dir|
...
@@ -131,7 +131,7 @@ static_js_dirs.each do |dir|
end
end
desc
"Use phantomjs to run jasmine tests for
#{
dir
}
from the console"
desc
"Use phantomjs to run jasmine tests for
#{
dir
}
from the console"
task
:phantomjs
do
task
:phantomjs
=>
[
:clean_reports_dir
]
do
# We need to use either CMS or LMS to preprocess files. Use LMS by default
# We need to use either CMS or LMS to preprocess files. Use LMS by default
Rake
::
Task
[
:assets
].
invoke
(
'lms'
,
'jasmine'
)
Rake
::
Task
[
:assets
].
invoke
(
'lms'
,
'jasmine'
)
template_jasmine_runner
(
dir
)
do
|
f
|
template_jasmine_runner
(
dir
)
do
|
f
|
...
...
rakelib/tests.rake
View file @
18c1bcdf
...
@@ -53,7 +53,7 @@ task :clean_test_files do
...
@@ -53,7 +53,7 @@ task :clean_test_files do
sh
(
"git clean -fqdx test_root"
)
sh
(
"git clean -fqdx test_root"
)
end
end
task
:clean_reports_dir
do
task
:clean_reports_dir
=>
REPORT_DIR
do
desc
"Clean coverage files, to ensure that we don't use stale data to generate reports."
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
# We delete the files but preserve the directory structure
...
...
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