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
Tatuya Kamada
gitlab-ce
Commits
5e1ac627
Commit
5e1ac627
authored
Jul 01, 2016
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test coverage analysis for CoffeeScript (!5052)
parent
91030230
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
.gitignore
.gitignore
+1
-0
.gitlab-ci.yml
.gitlab-ci.yml
+10
-0
spec/teaspoon_env.rb
spec/teaspoon_env.rb
+4
-4
No files found.
.gitignore
View file @
5e1ac627
...
...
@@ -30,6 +30,7 @@
/config/secrets.yml
/config/sidekiq.yml
/coverage/*
/coverage-javascript/
/db/*.sqlite3
/db/*.sqlite3-journal
/db/data.yml
...
...
.gitlab-ci.yml
View file @
5e1ac627
...
...
@@ -222,7 +222,15 @@ teaspoon:
stage
:
test
<<
:
*use-db
script
:
-
curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
-
apt-get install --assume-yes nodejs
-
npm install --global istanbul
-
teaspoon
artifacts
:
name
:
coverage-javascript
expire_in
:
31d
paths
:
-
coverage-javascript/default/
bundler:audit:
stage
:
test
...
...
@@ -269,10 +277,12 @@ pages:
stage
:
pages
dependencies
:
-
coverage
-
teaspoon
script
:
-
mv public/ .public/
-
mkdir public/
-
mv coverage public/coverage-ruby
-
mv coverage-javascript/default/ public/coverage-javascript/
artifacts
:
paths
:
-
public
...
...
spec/teaspoon_env.rb
View file @
5e1ac627
...
...
@@ -149,7 +149,7 @@ Teaspoon.configure do |config|
# Specify that you always want a coverage configuration to be used. Otherwise, specify that you want coverage
# on the CLI.
# Set this to "true" or the name of your coverage config.
# config.use_coverage = nil
config
.
use_coverage
=
true
# You can have multiple coverage configs by passing a name to config.coverage.
# e.g. config.coverage :ci do |coverage|
...
...
@@ -158,15 +158,15 @@ Teaspoon.configure do |config|
# Which coverage reports Istanbul should generate. Correlates directly to what Istanbul supports.
#
# Available: text-summary, text, html, lcov, lcovonly, cobertura, teamcity
#
coverage.reports = ["text-summary", "html"]
coverage
.
reports
=
[
"text-summary"
,
"html"
]
# The path that the coverage should be written to - when there's an artifact to write to disk.
# Note: Relative to `config.root`.
# coverage.output_path = "coverage
"
coverage
.
output_path
=
"coverage-javascript
"
# Assets to be ignored when generating coverage reports. Accepts an array of filenames or regular expressions. The
# default excludes assets from vendor, gems and support libraries.
# coverage.ignore = [%r{/lib/ruby/gems/}, %r{/vendor/assets/}, %r{/support/}, %r{/(.+)_helper.
}]
coverage
.
ignore
=
[
%r{vendor/}
,
%r{spec/
}
]
# Various thresholds requirements can be defined, and those thresholds will be checked at the end of a run. If any
# aren't met the run will fail with a message. Thresholds can be defined as a percentage (0-100), or nil.
...
...
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