GithubHelp home page GithubHelp logo

radditude / coveralls-multi Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 72 KB

A Coveralls client that supports multi-language repos

Home Page: https://rubygems.org/gems/coveralls-multi

License: MIT License

Ruby 99.69% Shell 0.31%
coverage coveralls multi-language

coveralls-multi's Introduction


Programming skills: PRIMARILY RUBY AND GO BUT I CAN MAKE ANY TYPE OF GETAWAY WITH ANY TYPE OF TREASURE


coveralls-multi's People

Contributors

prehnra avatar radditude avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

coveralls-multi's Issues

Throw a better error when a file is missing

If you have warnings-as-errors turned on in Elixir, it's fairly common for the compilation step to fail when running Elixir tests. This means that the Elixir coverage output file never gets created, which in turn means that coveralls-multi will throw a long and confusing error when it tries to parse the non-existent file:

$ coveralls-multi
/home/travis/.rvm/gems/ruby-2.4.1/gems/coveralls-multi-1.4.4/lib/coveralls-multi/formatter.rb:26:in `read': No such file or directory @ rb_sysopen - /home/travis/build/revelrylabs/platform/cover/excoveralls.json (Errno::ENOENT)
	from /home/travis/.rvm/gems/ruby-2.4.1/gems/coveralls-multi-1.4.4/lib/coveralls-multi/formatter.rb:26:in `parse_json'
	from /home/travis/.rvm/gems/ruby-2.4.1/gems/coveralls-multi-1.4.4/lib/coveralls-multi/formatters/excoveralls.rb:10:in `run'
	from /home/travis/.rvm/gems/ruby-2.4.1/gems/coveralls-multi-1.4.4/lib/coveralls-multi/runner.rb:32:in `block in format_all_coverage_files'
	from /home/travis/.rvm/gems/ruby-2.4.1/gems/coveralls-multi-1.4.4/lib/coveralls-multi/runner.rb:31:in `each'
	from /home/travis/.rvm/gems/ruby-2.4.1/gems/coveralls-multi-1.4.4/lib/coveralls-multi/runner.rb:31:in `format_all_coverage_files'
	from /home/travis/.rvm/gems/ruby-2.4.1/gems/coveralls-multi-1.4.4/lib/coveralls-multi/runner.rb:19:in `merge'
	from /home/travis/.rvm/gems/ruby-2.4.1/gems/coveralls-multi-1.4.4/lib/coveralls-multi/runner.rb:12:in `start'
	from /home/travis/.rvm/gems/ruby-2.4.1/gems/coveralls-multi-1.4.4/bin/coveralls-multi:6:in `<top (required)>'
	from /home/travis/.rvm/gems/ruby-2.4.1/bin/coveralls-multi:23:in `load'
	from /home/travis/.rvm/gems/ruby-2.4.1/bin/coveralls-multi:23:in `<main>'
	from /home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
	from /home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
[CoverallsMulti] Could not parse file at cover/excoveralls.json
[CoverallsMulti] There was a problem converting the excoveralls file at cover/excoveralls.json.
[CoverallsMulti] Make sure the file exists.
The command "coveralls-multi" exited with 1.

Fix: coveralls-multi should show a friendlier error when a file is missing. There's no need for the full stack trace since it's not helpful in this case - just a message that communicates that the file is missing and to check for problems earlier in the build process.

nyc coverage report is broken

nyc v15.x introduced a breaking change that changed from absolute path to relative path in the lcov.info report file. This results in coveralls-multi to throw an error saying that the file/directory can't be found when processing the the lcov.info file. We'll need to figure out a fix for this since coveralls-multi is called in the root of the project and doesn't know where the actual javascript files are located.

nyc 14.x

SF:/opt/src/assets/mocha.setup.js

nyc 15.x

SF:mocha.setup.js

Overwriting excoveralls coveralls.json config when in debug mode

excoveralls uses coveralls.json as a config file for options like minimum_coverage.

When I run coveralls-multi, it is writing out the coverage report over that config file.

[CoverallsMulti] Debug mode on - writing results to /path/to/repo/coveralls.json

Is there a way to set the output location?

Or maybe Coveralls Multi could use a different filename/location for this (temp) file, instead of stomping on excoveralls config by default?

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.