Xcode should only run tests related to files changed since the last commit
| Originator: | weyert | ||
| Number: | rdar://34882061 | Date Originated: | 09-Oct-2017 11:32 am |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Security | Reproducible: | Always |
Summary: This is a duplicate of radar #34873674 It would be really cool when running unit tests in Xcode, if there were a way to only run unit tests related to files that have been modified since the last git commit. Consider the following scenario: - I've modified ViewController.swift (not tests)nand ModelTests.swift (tests). - Xcode discerns that only ViewControllerTests.swift ModelTests.swift should be run. This would significantly decrease the amount of time developers spend waiting for feedback about the code that they've changed. Faster tests would lead to developers running tests more often, and would greatly improve the TDD red/green/refactor cycle. Steps to Reproduce: Expected Results: Actual Results: Version: Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!