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.
Summary: | Allow users to modify the way JUnit test skeletons are generated | ||
---|---|---|---|
Product: | java | Reporter: | Marian Petras <mpetras> |
Component: | JUnit | Assignee: | junit-issues@java <junit-issues> |
Status: | REOPENED --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 227314, 227315, 227316, 227317 | ||
Bug Blocks: |
Description
Marian Petras
2006-06-28 16:03:23 UTC
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. |