Cédric Félizard

Results 45 comments of Cédric Félizard
trafficstars

As the error message suggests, can you double check that: 1. your script doesn't mess with `$LINENO` 1. you don't have [this Unicode character](https://unicode-table.com/en/001E/) in your script or path Does...

``` bashcov -- ./test_set_trace_level.sh testLogLevel_PRODUCT testLogLevel_TRACE Ran 2 tests. OK bashcov: warning: /tmp/shunit.GmdRwD/noexec was executed but has been deleted since then - it won't be reported in coverage. bashcov: warning:...

Hmm no other suspects I can think of. We'll need to get some debugging information. Can you add the following line in `$GEM_HOME/gems/bashcov-1.6.0/lib/bashcov/xtrace.rb` and paste the output here (redacting any...

Sorry this is pretty difficult to debug since I can't replicate the issue. What output do you get with the `bashcov-test.tar.gz` archive you uploaded above? Also, what Ruby version are...

Sigh, I couldn't replicate the issue with Ruby 2.3.1 either: ```bash $ /home/infertux/.rvm/gems/ruby-2.3.1/gems/bashcov-1.6.0/bin/bashcov ./test_set_trace_level.sh testLogLevel_PRODUCT testLogLevel_TRACE Ran 2 tests. OK bashcov: warning: /tmp/shunit.FbFeIb/noexec was executed but has been deleted since...

Hi @wondertiger, could you please update to the latest version with `gem update bashcov` and paste the new output here?

Ping @wondertiger

So it has happened with Bash 4.2, 4.3 *and* 4.4 thus I don't think it has anything to do with the version of Bash. Are you sure the code was...

I'm not sure I understand that scenario. Couldn't you use `bashcov ./validate-output.sh < ./script.sh` instead of `./validate-output.sh bashcov ./script.sh` to work around that issue?

> In the scenario you've suggested, it looks like bashcov would generate coverage stats for `validate-output.sh` but not `script.sh`, no? Correct. Sorry for the sloppy example. My point was that...