ollieatkinson / Guise

A tool to generate the Swift public interface for Frameworks and Libraries
MIT License
53 stars 5 forks source link

Add automated unit tests #8

Closed Sherlouk closed 6 years ago

Sherlouk commented 6 years ago

Would need to change a few things, for example being able to extract environment variables from a protocol rather than mocking the entire ProcessInfo.

I believe there are several chunks that can be individually tested very nicely, but also the start-to-end flow can be quite neatly tested by allowing the save to disk function to be configured via a block.

This could coincide with work to enable CI, and tools like Circle allow you to choose Xcode versions. I believe due to SourceKit changes, the output will likely change overtime as the Xcode versions update - so this is still something valid to test to ensure functionality still works.

ollieatkinson commented 6 years ago

And off the back of doing this ticket, getting it setup in travis (or tool a-like) should be a priority

Sherlouk commented 6 years ago

@ollieatkinson Good to close this issue? Tests will be an ongoing thing, but the initial stuff is setup and CI is seemingly working?