Make it easy to create unit tests from Playgrounds

Originator:kusterer
Number:rdar://17156830 Date Originated:04-Jun-2014 12:10 PM
Status:Open Resolved:
Product:Developer Tools Product Version:10.10
Classification:Feature (New) Reproducible:Not Applicable
 
The progressive exploration of algorithms in Playgrounds often includes writing the code to actually run/test this code. It would be really handy if it was made easy to select part of a Playground “worksheet” and mark it (and its result) as a test, and then generate source files from it that

1) contain a test case class with the appropriate comparison statement to ensure it matches the current result

2) take the remaining code that’s not for testing and turn it into a header/source file pair, ready for use.

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!