pdcgomes / XCActionBar

"Alfred for Xcode" plugin
MIT License
1.21k stars 36 forks source link

[Feature request] navigate back and forth between class and it's tests #23

Open delebedev opened 9 years ago

delebedev commented 9 years ago

Like in appcode: you press the keys and xcode goes from className to classNameSpec or classNameTests

I will be glad to do it myself but do not know how to start this one.

pdcgomes commented 9 years ago

It was actually one of the first things on my TODO list when I first started this project :) I do have some degree of support for that (I can index test cases for the current project) but there's still a lot left.

I'm currently adding support for another unrelated feature that will allow certain Actions to have sub-menus (you'll be able to drill down to further refine your searches, select presets, etc.), so that will at least provide the basis for a better unit test navigation.

In terms of actual features, what's your expectation there? To be able to select and run individual tests from the action bar?

delebedev commented 9 years ago

Not exactly. This feature only about fast navigation, not running the tests. Let's pretend I have MyClass.m file open in Xcode. I open action bar and there is a command "Go to the test class", when I select it Xcode opens MyClassTests.m. On the other hand, when 'MyClassTests.m' is open and I double tap ALT I go to MyClass.m. Does it makes sense?