Git Product home page Git Product logo

Comments (8)

pedrorijo91 avatar pedrorijo91 commented on August 17, 2024

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.

arthurhuangzh avatar arthurhuangzh commented on August 17, 2024

@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.

arthurhuangzh avatar arthurhuangzh commented on August 17, 2024

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.

pedrorijo91 avatar pedrorijo91 commented on August 17, 2024

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.

arthurhuangzh avatar arthurhuangzh commented on August 17, 2024

@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.

arthurhuangzh avatar arthurhuangzh commented on August 17, 2024

Please fix this ASAP we are waiting for use.

from ruby-codacy-coverage.

pedrorijo91 avatar pedrorijo91 commented on August 17, 2024

Just released a new version: https://rubygems.org/gems/codacy-coverage/versions/1.1.0

from ruby-codacy-coverage.

arthurhuangzh avatar arthurhuangzh commented on August 17, 2024

@pedrorijo91 thanks 👍

from ruby-codacy-coverage.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.