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

Relative path output directory differs from full path for bash scripts coverage #461

Open
git-blame opened this issue Sep 19, 2024 · 0 comments

Comments

@git-blame
Copy link

I'm doing code coverage for bash script with main script in X and helper scripts in Y. So my kcov options are --bash-dont-parse-binary-dir --bash-parse-files-in-dir=Y <output_dir> X/main.sh

If output_dir is a relative path (e.g., coverage, ../coverage) kcov will not find any coverage for helper scripts. If output_dir is absolute path (e.g., /tmp/coverage, `realpath coverage`), helper scripts have coverage information.

Have not tested to see if compiled code, etc. have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant