Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect coverage report for multiline statements #2

Closed
infertux opened this issue Mar 13, 2013 · 4 comments

Comments

Projects
None yet
3 participants
@infertux
Copy link
Owner

commented Mar 13, 2013

variable=($(      
echo hi
))
echo after

Reported coverage is [nil, 0, 1, 2]. It should be [nil, 1, 1, 1].
This seems to be a bug in Bash?

See the pending spec in spec/bashcov/runner_spec.rb.

@ctubio

This comment has been minimized.

Copy link
Contributor

commented May 2, 2015

more examples here with different multilines that are working/failing:
https://coveralls.io/builds/2476834/source?filename=INSTALL

hope it helps! (i know it doesnt xD)

btw, thank you for this lovely Code coverage tool for Bash!

@infertux

This comment has been minimized.

Copy link
Owner Author

commented Feb 19, 2016

We could use something like this: albfan@09c1345

@gbraekmans

This comment has been minimized.

Copy link

commented Aug 24, 2016

Any chance this could be merged?

@infertux infertux closed this in c6e49fc Oct 8, 2016

@infertux

This comment has been minimized.

Copy link
Owner Author

commented Oct 8, 2016

Hi @ctubio & @gbraekmans, I just pushed version 1.4.0 to RubyGems.org which has some basic parsing of multiline statements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.