netbeans plugins, test cases outside of main branches

View: New views
2 Messages — Rating Filter:   Alert me  

netbeans plugins, test cases outside of main branches

by Sam Halliday :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all,

One of the biggest problems with developing Netbeans plugins is that the test infrastructure is not available outside of the main branches. For example, I recently considered writing a Java Hint plugin, which was working great as a standalone hint (with no need to have the NB src tree lying around)... but I was completely unable to write unit tests because I needed to extend Test files from other packages. In this case, I needed access to org.netbeans.modules.java.hints.infrastructure.TreeRuleTestBase and a few other things like that.

Any ideas on how to make this infrastructure available to 3rd party plugin developers?

Re: netbeans plugins, test cases outside of main branches

by Jesse Glick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sam Halliday wrote:
> I needed access to
> org.netbeans.modules.java.hints.infrastructure.TreeRuleTestBase and a few
> other things like that.
>
> Any ideas on how to make this infrastructure available to 3rd party plugin
> developers?

The test infrastructure would need to be packaged into a module included in the NB distribution, just as we do with nbjunit, jemmy, and jellytools.*. There is no other
way currently.