Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
fb8908d9
Commit
fb8908d9
authored
Apr 10, 2019
by
Tim Zallmann
Committed by
Stan Hu
Apr 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed also the in the meanwhile introduced rake task
parent
c5752955
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
lib/tasks/karma.rake
lib/tasks/karma.rake
+1
-9
No files found.
lib/tasks/karma.rake
View file @
fb8908d9
unless
Rails
.
env
.
production?
namespace
:karma
do
desc
'GitLab | Karma | Generate fixtures for JavaScript tests'
task
fixtures:
[
'karma:
copy_emojis_from_public_folder'
,
'karma:
rspec_fixtures'
]
task
fixtures:
[
'karma:rspec_fixtures'
]
desc
'GitLab | Karma | Generate fixtures using RSpec'
RSpec
::
Core
::
RakeTask
.
new
(
:rspec_fixtures
,
[
:pattern
])
do
|
t
,
args
|
...
...
@@ -11,14 +11,6 @@ unless Rails.env.production?
t
.
rspec_opts
=
'--format documentation'
end
desc
'GitLab | Karma | Copy emojis file'
task
:copy_emojis_from_public_folder
do
# Copying the emojis.json from the public folder
fixture_file_name
=
Rails
.
root
.
join
(
'spec/javascripts/fixtures/emojis/emojis.json'
)
FileUtils
.
mkdir_p
(
File
.
dirname
(
fixture_file_name
))
FileUtils
.
cp
(
Rails
.
root
.
join
(
'public/-/emojis/1/emojis.json'
),
fixture_file_name
)
end
desc
'GitLab | Karma | Run JavaScript tests'
task
tests:
[
'yarn:check'
]
do
sh
"yarn run karma"
do
|
ok
,
res
|
...
...
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