Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
c85c1ae4
Commit
c85c1ae4
authored
Apr 18, 2015
by
Tim Emiola
Browse files
Options
Downloads
Patches
Plain Diff
Add SimpleCov coverage set up for gRPC ruby
parent
9bffc908
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/ruby/.rspec
+1
-0
1 addition, 0 deletions
src/ruby/.rspec
src/ruby/Rakefile
+1
-0
1 addition, 0 deletions
src/ruby/Rakefile
src/ruby/grpc.gemspec
+1
-0
1 addition, 0 deletions
src/ruby/grpc.gemspec
src/ruby/spec/spec_helper.rb
+8
-4
8 additions, 4 deletions
src/ruby/spec/spec_helper.rb
with
11 additions
and
4 deletions
src/ruby/.rspec
+
1
−
0
View file @
c85c1ae4
-I.
-I.
--require spec_helper
This diff is collapsed.
Click to expand it.
src/ruby/Rakefile
+
1
−
0
View file @
c85c1ae4
...
@@ -26,6 +26,7 @@ namespace :suite do
...
@@ -26,6 +26,7 @@ namespace :suite do
SPEC_SUITES
.
each
do
|
suite
|
SPEC_SUITES
.
each
do
|
suite
|
desc
"Run all specs in the
#{
suite
[
:title
]
}
spec suite"
desc
"Run all specs in the
#{
suite
[
:title
]
}
spec suite"
RSpec
::
Core
::
RakeTask
.
new
(
suite
[
:id
])
do
|
t
|
RSpec
::
Core
::
RakeTask
.
new
(
suite
[
:id
])
do
|
t
|
ENV
[
'COVERAGE_NAME'
]
=
suite
[
:id
].
to_s
spec_files
=
[]
spec_files
=
[]
suite
[
:files
].
each
{
|
f
|
spec_files
+=
Dir
[
f
]
}
if
suite
[
:files
]
suite
[
:files
].
each
{
|
f
|
spec_files
+=
Dir
[
f
]
}
if
suite
[
:files
]
...
...
This diff is collapsed.
Click to expand it.
src/ruby/grpc.gemspec
+
1
−
0
View file @
c85c1ae4
...
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
...
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
s
.
add_dependency
'minitest'
,
'~> 5.4'
# reqd for interop tests
s
.
add_dependency
'minitest'
,
'~> 5.4'
# reqd for interop tests
s
.
add_dependency
'xray'
,
'~> 1.1'
s
.
add_dependency
'xray'
,
'~> 1.1'
s
.
add_development_dependency
'simplecov'
,
'~> 0.9'
s
.
add_development_dependency
'bundler'
,
'~> 1.9'
s
.
add_development_dependency
'bundler'
,
'~> 1.9'
s
.
add_development_dependency
'rake'
,
'~> 10.4'
s
.
add_development_dependency
'rake'
,
'~> 10.4'
s
.
add_development_dependency
'rake-compiler'
,
'~> 0.9'
s
.
add_development_dependency
'rake-compiler'
,
'~> 0.9'
...
...
This diff is collapsed.
Click to expand it.
src/ruby/spec/spec_helper.rb
+
8
−
4
View file @
c85c1ae4
...
@@ -35,14 +35,18 @@ $LOAD_PATH.unshift(spec_dir)
...
@@ -35,14 +35,18 @@ $LOAD_PATH.unshift(spec_dir)
$LOAD_PATH
.
unshift
(
lib_dir
)
$LOAD_PATH
.
unshift
(
lib_dir
)
$LOAD_PATH
.
uniq!
$LOAD_PATH
.
uniq!
require
'faraday'
# set up coverage
require
'simplecov'
SimpleCov
.
start
do
add_filter
'spec'
add_filter
'bin'
SimpleCov
.
command_name
ENV
[
'COVERAGE_NAME'
]
end
if
ENV
[
'COVERAGE_NAME'
]
require
'rspec'
require
'rspec'
require
'logging'
require
'logging'
require
'rspec/logging_helper'
require
'rspec/logging_helper'
# Allow Faraday to support test stubs
Faraday
::
Adapter
.
load_middleware
(
:test
)
# Configure RSpec to capture log messages for each test. The output from the
# Configure RSpec to capture log messages for each test. The output from the
# logs will be stored in the @log_output variable. It is a StringIO instance.
# logs will be stored in the @log_output variable. It is a StringIO instance.
RSpec
.
configure
do
|
config
|
RSpec
.
configure
do
|
config
|
...
...
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
sign in
to comment