Xcode should only run tests related to files changed since the last commit

Originator:ash
Number:rdar://34873674 Date Originated:7/11/2017
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:
 
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.

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!