mardi 27 janvier 2015

How to create a shortcut to a unit test from a comment?

I would like to add a shortcut to a specific unit test from my class level comment. This way a developer can quickly navigate to a test within their IDE.


Using IntelliJ, I added the following to the class comment for "MyClass":



/**
* @see com.my.address.AnotherClass
* @see com.my.address.MyClassTests
* {@link com.my.address.MyClassTests#nameOfMyTest NameOfMyTest}
*/


IntelliJ presents this error for the two shortcuts that reference the tests:



Cannot resolve symbol 'com.my.address.MyClassTests' less... (⌘F1)
This inspection points out unresolved references inside javadoc


Is it possible to present a shortcut to a unit test from comment? If so, how?


Aucun commentaire:

Enregistrer un commentaire