Home Import tests from one Unit test target into another
Reply: 1

Import tests from one Unit test target into another

Karl
1#
Karl Published in 2017-11-15 00:44:00Z

We started to split our swift iOS app into multiple frameworks to speed up our TDD feedback cycle. Each of these framework is a project with it's own unit test target. All of these are part of a larger workspace.

The issue is we can't run multiple test targets with our current CI setup. I was wondering if it's possible to bundle together all of our test targets into one for CI but keep them separated for development (maybe by importing/running tests from all the different targets into a "CI unit test target")?

Mitchell Currie
2#
Mitchell Currie Reply to 2017-11-15 00:50:55Z

You could certainly add another target and add REFERENCES to the files for the unit tests. They may more may not need modification of the module import names. A file may be referenced in multiple projects, and this could even be automated, as there are tools such as PBXProj for python to allow reading/writing of the Xcode project.

Alternatively, but I am not sure, it may be possible to create an aggregate target with the other items added - this is just speculation.

Perhaps a better question is why can't multiple test targets be run? Surely a script or fast lane could help?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.351103 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO