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.
When I set up a test folder with existing sources, it went ahead and built test cases for pretty much every single file in my source tree, even though there were tests present. It would good to have a bit more control over this. Basically, allow me to set up folder mappings, whitelists, and blacklists before generating unit tests. Also give me the option of not opening new tests. If you accidentally tell it to create unit tests for a folder with 100+ files, it can easily crash Netbeans.
(In reply to comment #0) > Basically, allow me to set up folder mappings, Unlikely to happen, sorry. > whitelists, and blacklists > before generating unit tests. XML configuration cannot help in this case? I don't know it but I would expect so. > Also give me the option of not opening new tests. > If you accidentally tell it to create unit tests for a folder with 100+ files, > it can easily crash Netbeans. This can be done.
(In reply to comment #1) > (In reply to comment #0) > > Basically, allow me to set up folder mappings, > > Unlikely to happen, sorry. Bummer. > > > whitelists, and blacklists > > before generating unit tests. > > XML configuration cannot help in this case? I don't know it but I would expect > so. I mean for auto-generation of unit tests. eg. right click on "Source Files" -> Tools -> Create PHPUnit Tests would be nice to be given an a window where you can select what files/folders to create unit tests for. > > > Also give me the option of not opening new tests. > > If you accidentally tell it to create unit tests for a folder with 100+ files, > > it can easily crash Netbeans. > > This can be done. Thanks.
(In reply to comment #2) > I mean for auto-generation of unit tests. > eg. right click on "Source Files" -> Tools -> Create PHPUnit Tests > would be nice to be given an a window where you can select what files/folders > to create unit tests for. Again, isn't it possible to define any whilelist/blacklist in PHPUnit XML configuration? Moreover, one can select only those folders and/or files for which unit tests should be generated.
batch reassigning
(In reply to comment #3) > (In reply to comment #2) > > I mean for auto-generation of unit tests. > > eg. right click on "Source Files" -> Tools -> Create PHPUnit Tests > > would be nice to be given an a window where you can select what files/folders > > to create unit tests for. > > Again, isn't it possible to define any whilelist/blacklist in PHPUnit XML > configuration? > Moreover, one can select only those folders and/or files for which unit tests > should be generated. Sorry to interrupt. :) I agree with Thomas that one can select in Files or Projects window, folders/files for which unit tests should be generated. However, as far as I can see, there is no option in PHPUnit XML configuration [1] to whilelist/blacklist folders/files for which unit tests should be generated. There is option to include/exclude files/folders from code coverage which sounds similar. Finally I have to agree with reporter that it will be nice to have something similar to refactoring preview: a list of folders/files with checkboxes to select folders/files to create test skeletons. Parent folder could be dependent on folder selected, e.g. if the user right clicks on src/AcmeModel in preview window only content of src/AcmeModel will be shown. Comparing to using ctrl+click in Projects or Files window, sounds much easier and gives more control. [1] http://www.phpunit.de/manual/3.6/en/appendixes.configuration.html