lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
246 stars 17 forks source link

38978351: Xcode 9: Test Classes and Test Callers menu items in Related Items menu don't work #19547

Open openradar-mirror opened 6 years ago

openradar-mirror commented 6 years ago

Description

Summary:

The Xcode 9 release notes included this in the General > New Features section:

Added Test and Tests as suffixes for determining file counterparts used in navigation and in the Assistant Editor. (28981734)

This is a great new feature that makes it much easier to navigate to and edit code and test counterparts at the same time. Unfortunately I'm unable to get this to work. It's not clear if I'm misunderstanding how it should work or if there is a bug.

This may be related to rdar://38938839

Steps to Reproduce:

  1. Create a new project in Xcode with the iOS Single View template
    • include Unit Tests
    • Swift language
  2. Add an instance method to the generated ViewController class
  3. Rename the generated test class and file to ViewControllerTests, following the guidance of the Xcode 9 release notes
  4. Add a test method to ViewControllerTests which invokes the ViewController instance method that you added in step 2
  5. Navigate back to ViewController.swift
  6. With the cursor inside the new instance method, note that there are no items in the Test Classes or Test Callers menu item in the Related Items menu (shown by clicking the 4-squares icon in the top left of every editor view)

Expected Results:

It's possible to navigate to a source file's counterpart test class or a method's test callers with the Related Items menu.

Actual Results:

These menu items never contain any other source file menu items.

Version/Build:

Version 9.2 (9C40b)

Configuration:

- Product Version: 9 Created: 2018-03-28T23:58:13.208450 Originated: 2018-03-28T00:00:00 Open Radar Link: http://www.openradar.me/38978351

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780

openradar-mirror commented 6 years ago

Modified: 2018-04-03T19:43:33.829780