Closed markst closed 8 months ago
@markst Thank you for the described problem. I'll fix it soon
When using XCodegen, it lists the targets alphabetically. Stencil uses the first target as mainTarget. I have now fixed this manually. Is there a better solution?
@Foixa I think you can create a .prefire.yml configuration file in the root of the project. Then add the necessary Target
to this file.
test_configuration:
- target: YourTarget
I added parameter forwarding in the latest release.
test_configuration:
- imports:
- UIKit
- SwiftUI
- testable_imports:
- Prefire
prefire_configuration:
- imports:
- UIKit
- Foundation
- testable_imports:
- SwiftUI
You can try it 🚀
Context 🕵️♀️
Inside
PreviewModels.stencil
we have a conditional import statement:What 🌱
Where as the
PrefireTestsPlugin
can be provided with amainTarget
argument. It seems thePrefirePlaybookPlugin
has no support for passing themainTarget
?Proposal 🎉
Think this might be as simple as passing:
to the
PrefireTestsPlugin.Command