Comments (4)
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.
PS: https://github.com/colszowka/simplecov#merging-results should come in handy.
from bashcov.
Hey, I'd be interested in this too (as per Issue #29 .
Is there a workaround in the meantime?
from bashcov.
@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)
- Error when used with bats HOT 3
- parse_hit fails
- Shell flags inherited by child shells HOT 3
- 0% coverage with BATS on Mac HOT 1
- Is bashcov concurrency safe? HOT 1
- bashcov output should be silent by default HOT 3
- Using PS4 in tested script breaks coverage results HOT 1
- Capturing coverage on sourced script functions executed by bashunit
- `--bash-path` is not respected for `BASH_VERSION` detection HOT 1
- [question] bash 'compiler' HOT 1
- bashcov HOT 1
- Bashcov failing with LINENO related error. Bash is indeed above 4.4 (that was the recommendation till now to this error) HOT 1
- Are you planning a new release? HOT 3
- please rewrite this in bash HOT 2
- How to install on RHEL UBI8? HOT 1
- How to ignore files and folders in bashcov in GitLab-CI yaml? HOT 1
- Use of mutation testing in bashcov - Help needed
- Function definition line missed HOT 4
- Latest release April 2023 No longer has any coverage in report HOT 1
- CI with GitHub Actions? HOT 1
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 bashcov.