Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
18c1bcdf
Commit
18c1bcdf
authored
11 years ago
by
Will Daly
Browse files
Options
Downloads
Plain Diff
Merge pull request #283 from edx/will/recover-jasmine-test-results
Fix: deleting JS test reports in Jenkins
parents
894d44a0
ed57e7e5
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rakelib/jasmine.rake
+5
-5
5 additions, 5 deletions
rakelib/jasmine.rake
rakelib/tests.rake
+1
-1
1 addition, 1 deletion
rakelib/tests.rake
with
6 additions
and
6 deletions
rakelib/jasmine.rake
+
5
−
5
View file @
18c1bcdf
...
...
@@ -80,7 +80,7 @@ end
namespace
:jasmine
do
namespace
system
do
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'
)
django_for_jasmine
(
system
,
true
)
do
|
jasmine_url
|
jasmine_browser
(
jasmine_url
)
...
...
@@ -88,7 +88,7 @@ end
end
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
|
jasmine_browser
(
jasmine_url
,
jitter
=
0
,
wait
=
0
)
end
...
...
@@ -97,7 +97,7 @@ end
end
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'
)
phantomjs
=
ENV
[
'PHANTOMJS_PATH'
]
||
'phantomjs'
django_for_jasmine
(
system
,
false
)
do
|
jasmine_url
|
...
...
@@ -122,7 +122,7 @@ static_js_dirs.each do |dir|
namespace
:jasmine
do
namespace
dir
do
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
Rake
::
Task
[
'assets:coffee'
].
invoke
(
'lms'
,
'jasmine'
)
template_jasmine_runner
(
dir
)
do
|
f
|
...
...
@@ -131,7 +131,7 @@ static_js_dirs.each do |dir|
end
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
Rake
::
Task
[
:assets
].
invoke
(
'lms'
,
'jasmine'
)
template_jasmine_runner
(
dir
)
do
|
f
|
...
...
This diff is collapsed.
Click to expand it.
rakelib/tests.rake
+
1
−
1
View file @
18c1bcdf
...
...
@@ -53,7 +53,7 @@ task :clean_test_files do
sh
(
"git clean -fqdx test_root"
)
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."
# We delete the files but preserve the directory structure
...
...
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