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

Project target name in module_info #110

Closed
Austinate opened this issue Apr 28, 2016 · 2 comments
Closed

Project target name in module_info #110

Austinate opened this issue Apr 28, 2016 · 2 comments

Comments

@Austinate
Copy link

Austinate commented Apr 28, 2016

Hi! First of all — thank's for awesome project.
Recently i've faced a situation where i'd like to automatically import main module into tests via
@testable import MyTargetName but, unfortunately, module_info is missing any info about app targets.

From what i see — this will need some changes to content_generator.rb but i'm not familiar with Ruby so i'd like to get some help.

P.S. I've managed to workaround this with @testable import {{ module_info.project_name }} for now but ofc that's because my Project name == my main target name.

@etolstoy
Copy link
Member

Hi! Thanks for the feature request, we'll implement it in the next version.

@etolstoy
Copy link
Member

In the next version you'll be able to query project and test targets in the following way:

{{ module_info.project_targets.first }}
{{ module_info.test_targets[2] }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants