Using "Convert to XCTest" in Xcode from a workspace doesn't update the project

Originator:inbox
Number:rdar://16581037 Date Originated:10/04/2014
Status:Open Resolved:
Product:Xcode Product Version:5.1 (5B130a)
Classification:Bug Reproducible:Always
 
Summary:
Using "Convert to XCTest" in Xcode from a workspace doesn't update the project to work with XCTest.

I previously though this was expected behaviour and I figured out these steps to manually convert a project which is listed at http://kylefuller.co.uk/posts/migrating-from-ocunit-to-xctest/

Later on I have discovered that it does work if I convert from within a project directly, but if I try converting a project which sits in a workspace. It doesn't perform the changes to the project.

Steps to Reproduce:
1. Create a project with older Xcode using SenTestingKit (iOS empty project)
2. Close the project
3. Create and open a new workspace
4. Place project from step 2 in the workspace
5. Perform the conversion to XCTest (Edit > Refactor > Convert to XCTest)

Expected Results:
My project should work with XCTest and there should be no traces of SenTestingKit in the project

Actual Results:
My project does not build, the .m and .h files have been updated. The project has not been updated, and still references SenTestingKit

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!