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: | Give better options when setting up tests | ||
---|---|---|---|
Product: | php | Reporter: | dmuir <dmuir> |
Component: | PHPUnit | Assignee: | issues@php <issues> |
Status: | NEW --- | ||
Severity: | normal | CC: | tmysik |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
dmuir
2010-02-14 20:06:26 UTC
(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 |