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.

Bug 233641 - Template new variables for unit tests
Summary: Template new variables for unit tests
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-30 10:07 UTC by Guile
Modified: 2016-04-06 19:36 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guile 2013-07-30 10:07:17 UTC
I'm using atoum in NB7.4, and find very interesting to have a template that generate the test file.
There are some minor variables that could be a little useful with this unit test framework :
- the namespace from the original class (in order to add this namespace in the templace just after \tests\unit like "namespace \tests\unit\vendor\project\ns1\ns12" and a line with "use \vendor\project\ns1\ns12"
- the final name of the namespace (in the example above "ns12") from the original file.
- a "relative original file path" (in order to put a line like "require ../../project/dir1/file.php"). This is the less important if it is possible to have a bootstrap file atoum conf for the project

Is it possible to have them available in a future version?

Thank you very much!


Guile