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

Summary: Template new variables for unit tests
Product: editor Reporter: Guile
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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