-
Notifications
You must be signed in to change notification settings - Fork 414
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
Generate docs for all modules including testing docs #504
Comments
Jazzy generates docs on a per-module basis, with no easy command-line way to merge docs from multiple modules. You could look at how podspec_documenter.rb does this and re-expose that functionality as a command-line option though. |
How can you build the Unit tests module?, I have only been able to build my main project module, trying to build other modules gives me an error. |
@oscarmk1 |
@smac89 $ jazzy --module TestDocGenTests Running xcodebuild Could not parse compiler arguments from Please confirm that Saved Failed to generate documentation I am using jazzy version: 0.5.0 |
You can try specifying the swift version as well. I have version 2.2 and jazzy was initially expecting 2.1, so I had to do |
@smac89 Thanks, I tried it like this: xcrun swift -version is Apple Swift version 2.1.1 (swiftlang-700.1.101.15 clang-700.1.81) But I am getting the same error. What jazzy and XCode version are you using? |
Unfortunately, Xcode or |
@jpsim Thanks that worked!, had to pass a couple other arguments too but it works nicely. |
Glad to hear it! Maybe you can pass the full command you ended up with so that @smac89 and others can benefit from your work? Thanks! |
@jpsim Sure, this is what I am using to build the test module only:
I am using cocoapods, and therefore I am providing the workspace, so just remove that part if using a regular project. The SYMROOT I found it to be required or else it won't link properly during compilation when using cocoapods. The destination id is the id of your simulator instance, and it will be different than that one, you can also provide a platform and OS version, but for some reason I could not get it to work by passing the paremeters to xcodebuild using jazzy, it would work with xcodebuild by itself, so I think I was just using the wrong format. |
Thanks for sharing! |
For completeness, here is a sample
Replace Note the syntax for the Hope this helps someone! |
Thought: If we have to run the tests, anyway, why not aggregate the results in the Jazzy output as well? That way, we'd have a nice test report as well! Scripting it, I'd insert placeholders in the test documentation, extract the test result from whatever is dumped on the CLI, and then search-replace the HTML. Of course, it'd be much more convenient if Jazzy did this, and I'd expect it to be easier and cleaner as well, seeing as Jazzy knows about all the symbols, anyway. Worth a ticket? |
I've found if you use If that doesn't work for you then Xcode 9 has also added Doing But |
I have 3 modules in my project, the main one, unit tests, and ui tests. How do I specify that I want all the modules generated at once?
The text was updated successfully, but these errors were encountered: