Comments (8)
Hey @arthurhuangzh
Which sequence of commands are you running? Is it a open source project we can have a look at?
from ruby-codacy-coverage.
@pedrorijo91 Hi, thank you for reply, it's a close source project generally just a rails project with Rspec for tests run by parallel_tests
, the trigger command is bundle exec rake parallel:spec
.
from ruby-codacy-coverage.
and i'm using Coday instead of Codeclimate just replaced below lines in spec_help.rb
:
# require 'codeclimate-test-reporter'
# CodeClimate::TestReporter.start
require 'codacy-coverage'
Codacy::Reporter.start
# WebMock.disable_net_connect!(allow_localhost: true, allow: 'codeclimate.com')
WebMock.disable_net_connect!(allow_localhost: true, allow: 'codacy.my-company.com:16006')
run with CODACY_PROJECT_TOKEN CODACY_BASE_API_URL CODACY_RUN_LOCAL
envs.
update:
the error turns below if run with DEBUG_STDOUT =true
:
FATAL -- : wrong argument type nil (expected Regexp) (TypeError)
/gem_volume/gems/codacy-coverage-1.0.0/lib/codacy/parser.rb:11:in `sub'
ENV['RAILS_ENV'] = 'test'
/gem_volume/gems/codacy-coverage-1.0.0/lib/codacy/parser.rb:11:in `block in parse_file'
/gem_volume/gems/codacy-coverage-1.0.0/lib/codacy/parser.rb:10:in `each'
/gem_volume/gems/codacy-coverage-1.0.0/lib/codacy/parser.rb:10:in `map'
/gem_volume/gems/codacy-coverage-1.0.0/lib/codacy/parser.rb:10:in `parse_file'
/gem_volume/gems/codacy-coverage-1.0.0/lib/codacy/formatter.rb:6:in `format'
/gem_volume/gems/simplecov-0.11.2/lib/simplecov/result.rb:47:in `format!'
and get no error if disable Codacy::Reporter.start
with same simplecov configs.
from ruby-codacy-coverage.
Have you followed the instructions at
https://github.com/codacy/ruby-codacy-coverage/blob/master/README.md ? Can
you please activate the debug logs and paste it?
On Monday, 22 August 2016, arthurhuangzh [email protected] wrote:
and i'm using Coday instead of Codeclimate just replaced below lines in
spec_help.rb:require 'codeclimate-test-reporter'# CodeClimate::TestReporter.startrequire 'codacy-coverage'Codacy::Reporter.start
WebMock.disable_net_connect!(allow_localhost: true, allow: 'codeclimate.com')WebMock.disable_net_connect!(allow_localhost: true, allow: 'codacy.my-company.com: 16006')
run with CODACY_PROJECT_TOKEN CODACY_BASE_API_URL CODACY_RUN_LOCAL envs.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#17 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB6AylBW9TPEaEzsdDKbsEB98Wp4Mtvvks5qiQ9vgaJpZM4JoRL1
.
Obrigado,
Pedro Rijo
from ruby-codacy-coverage.
@pedrorijo91 i have submitted a PR for fixing and i need this to work without .git
because i don't want a big docker image for saving whole git histories, please have a look, thanks in advance.
from ruby-codacy-coverage.
Please fix this ASAP we are waiting for use.
from ruby-codacy-coverage.
Just released a new version: https://rubygems.org/gems/codacy-coverage/versions/1.1.0
from ruby-codacy-coverage.
@pedrorijo91 thanks 👍
from ruby-codacy-coverage.
Related Issues (15)
- rest-client dependency is missing on CI platforms HOT 3
- Rails 5 support HOT 6
- cannot load rest_client HOT 2
- CircleCI multiple containers aggregation example HOT 1
- Provide information about each branch HOT 1
- code coverage push fails for a project with VCR cassettes HOT 11
- Do not prevent simplecov reports on localhost HOT 10
- Undefined local variable or method `url' for Codacy::ClientAPI:Module while pushing results HOT 1
- Missing changelog HOT 1
- Partial Update Support HOT 3
- coverage badge HOT 2
- Describe Partial Update support in Documentation HOT 2
- gem 0.2.2 does not include fix for stripping carriage returns HOT 1
- Codacy::Parser breaks when using simplecov 0.18 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-codacy-coverage.