Git Product home page Git Product logo

Comments (4)

infertux avatar infertux commented on May 18, 2024

Hi, I feel like what you're suggesting should be the default behaviour, hence no -a flag is needed IMO.

As for having unique command names, we could infer some unique string from the parent script such as the $PPID and/or the process name. We could also allow to customise it through some env variable, e.g. SimpleCov.command_name Bashcov.fullname + (ENV['TEST_ENV_OR_WHATEVER'] || '').

Alternatively, you could wrap all scripts within a single one, similarly to https://github.com/infertux/bashcov/blob/master/spec/test_app/test_suite.sh but that might not be possible depending of your setup so I think having unique command names is a better solution.

Finally, replacing SimpleCov::Result with SimpleCov::ResultMerger should be quite easy :)

So yes this sounds like a great idea and I'd be happy to merge a PR as long as it doesn't break backward compatibility. Let me know if you need any help with that. Many thanks!

from bashcov.

infertux avatar infertux commented on May 18, 2024

PS: https://github.com/colszowka/simplecov#merging-results should come in handy.

from bashcov.

oreganrob avatar oreganrob commented on May 18, 2024

Hey, I'd be interested in this too (as per Issue #29 .
Is there a workaround in the meantime?

from bashcov.

infertux avatar infertux commented on May 18, 2024

@lashd @Fatlog Release 1.8.0 is out. You can update with gem update bashcov.

This release supports merging multiple test runs. More information is available here.

Kudos to @BaxterStockman who did all the heavy lifting :)

Please reopen this issue if you're having any trouble.

from bashcov.

Related Issues (20)

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.