Skip to content

fix coverage of files included with a relative path#330

Open
beatussum wants to merge 1 commit intoshellspec:masterfrom
beatussum:kcov
Open

fix coverage of files included with a relative path#330
beatussum wants to merge 1 commit intoshellspec:masterfrom
beatussum:kcov

Conversation

@beatussum
Copy link
Contributor

This pull request should close this issue.

I'm totally not sure if the shellspec_execdir() moving yet respects the project hierarchy.

All tests passed and waiting for review!

Before this commit, if a specfile includes (`Include`) a file foo with a
relative path and the directory from where `shellspec` is called differs from
the one specified by `--execdir`, foo is not covered with `--kcov`.

Closes: shellspec#327
See-also: shellspec#327
Signed-off-by: Mattéo Rossillol‑‑Laruelle <[email protected]>
@ko1nksm
Copy link
Member

ko1nksm commented Aug 6, 2024

Thanks for the contribution. I have not yet looked into this issue in detail and cannot get to it immediately. Please wait a little while.

(If there are no problems with this modification) the location of the test code for the shellspec_execdir function also needs to be moved. It also appears that ShellCheck warnings need to be disabled. It appears that the code has just been moved, but strangely the test seems to fail on Solaris 10 ksh88. If it is difficult to prepare a test environment, this can be left as is. I will look into it.

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

Successfully merging this pull request may close these issues.

Included script with a relative path are not covered

2 participants