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

build-for-testing and CI/CD #531

Open
im-jersh opened this issue Jan 10, 2023 · 2 comments
Open

build-for-testing and CI/CD #531

im-jersh opened this issue Jan 10, 2023 · 2 comments

Comments

@im-jersh
Copy link

i have a CI/CD pipeline where one job builds my project for testing and then a subsequent job runs the tests with the generated .xctestrun from the build job. this pipeline optimization has worked great for me. however, i run into issues when trying to use Slather.

due to jobs being distributed across a pool of runners, if the build and test jobs run on different machines, Slather does not generate any reports because it can't find the files used to build. it looks like Slather is using the absolute file paths encoded in the test results output which references paths that are only valid on the runner that executed the build job, which of course don't exist on the runner that executed the test and report job.

how does one work around this? is there a way to provide the source directory rather than rely on the absolute file paths encoded in the test results? or am i to resort to just executing my build and test commands in the same job?

@bratxdy
Copy link

bratxdy commented Jul 20, 2023

Did you end up figuring this out? I ran into the same issues on Bitrise.

@im-jersh
Copy link
Author

nope, but i haven't really spent much time trying to figure this out since opening this issue.

i imagine this likely has more to do with the internal structuring of the test result artifacts but i'm still hopeful there's a way Slather could work around this if that holds true.

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

2 participants