This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Several users have asked about how to change the templates from which the test method skeletons are generated. The current implementation does not allow it - the test method skeleton is generated programatically. To change it, the users would have to modify the module source code. Change it - allow the users to customize the generated test method skeletons.
To people interested in this feature: Please describe/specify the skeletons you want to be generated. The more examples you provide, the better support for customizations of code can be developed. I do not have any idea of how you want the skeletons to be generated - the more ideas you provide, the more capable/general support for this feature can be developed.
No input since 2006, seems nobody interested in it.
Adding actual descriptions.
Specific descriptions added in: Bug 227314 - Framework Specification / Custom imports Bug 227315 - Method Declaration Generation Bug 227316 - New instance generation Bug 227317 - Parameterized test generation
The 6.7 beta code coverage plugin is no longer being maintained
Whoops! Wrong bug... Was cleaning up some old bugs and closed this one by mistake. It is still valid. - jacob
As you were asking for descriptions and I just came upon this here is what I would want The Templates allow for the commenting of the Before and After methods but do not allow for a custom comment on the "generated" unit tests. I would like the ability to modify the default output of the comments for a generated test from: /** * Test of getFooMethod, of class Foo */ Template: /** * Test of ${method}, of class ${name} */ to something like: /** * Test of {@link Foo#getFooMethod(package.Foo)} */ Template: /** * Test of {@link ${name}#${method}(${package})} */ The test method name could be an option for revision too although that could be significantly harder to implement.