Tuist inspect redundant-imports reports tests target dependency on app

Question or problem

tuist inspect redundant-imports reports redundant dependency of tests target on application target
Issue occurs with newly created project using tuist init

How should i setup my dependencies on newly created project so tests target can test application and for tuist inspect to not report it as redundant dependency?

Expectation

tuist inspect redundant-imports should not report tests target dependency on application target as redundant.

Context

  • Tuist version: 4.65

Reproduction (mandatory for problems)

run tuist init
add @testable import MyApp to your tests file MyAppTests
run tuist inspect redundant-imports
it reports: - MyAppTests redundantly depends on: MyApp

1 Like

Thanks for reporting this @mcj. I was able to reproduce this in the attached project. Since this is a legit issue, would you mind creating an issue at GitHub - tuist/tuist: A virtual platform team for mobile devs who ship tith this attachment? Also if you are interested in debugging and fixing the issue, I can give you some pointers.

Berlin.zip (13.6 KB)

Thank you for checking this out. I`ve reported this issue on github:

I may look into this when I have some free time.