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

Code Coverage Breaks Gitlab Artifact Upload #257

Open
chrisbowlby1 opened this issue Jan 6, 2022 · 0 comments
Open

Code Coverage Breaks Gitlab Artifact Upload #257

chrisbowlby1 opened this issue Jan 6, 2022 · 0 comments

Comments

@chrisbowlby1
Copy link

I am using Gitlab CI/CD to help build containers, and one of these containers is made up of a number of small shell scripts that I'm validating with Shellspec. I am overriding the default entrypoint and calling the following command:

shellspec -s /bin/bash -o junit

To create junit reports, but as soon as I enable the means to build cobertura reports via kcov by adding "--kcov" to the command, my artifacts for cobertura break the pipeline:

shellspec -s /bin/bash -o junit --kcov

image

I've determined the issue appears to be with the way the folders are created within the coverage folder, such that it looks like this:

coverage/<project_name> [specfiles]/cobertura.xml

Where <project_name> is the name of the git project, here is a picture of an example of what the directory structure looks like, I've had to black out the project name however:

image

I'm unsure why the " [specfiles]" is being added to the path, but as soon as I remove that portion from the file name, the pipeline works as expected.

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