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 96266 - Stop creating empty test folders on project creation
Summary: Stop creating empty test folders on project creation
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 102711 189769
Blocks:
  Show dependency tree
 
Reported: 2007-02-22 09:41 UTC by tomzi
Modified: 2010-08-24 15:23 UTC (History)
2 users (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 tomzi 2007-02-22 09:41:50 UTC
.) Create a Maven/Maven Quickstart project (or any other project)
.) Remove src/test folder in Files view
(.) Run Build to refresh the view, so Test Packages disappears, see ISSUE# 96264)
.) Create a java class
.) Click on java class/Tools/create Junit Test
-> Error shown, that no test folder could be found.

Better repsonse would be:
A dialoge should open, showing the error and asking if the test folder should be
created in order to creat test.

Reason:
A programming beginner might not be aware of the special notation, where and how
test folders should be created.
e.g. Netbeans expects a test folder to be configured in the project properties
for J2SE/Web... projects, but where are they to be configured in maven? And how
do they look like. And even in possible future java projects that might change
too. Therefore a dialogue could reduce the expected knowledge and increase
usability.
Comment 1 Milos Kleint 2007-03-01 14:26:46 UTC
more likely a bug
Comment 2 Milos Kleint 2007-03-23 12:57:39 UTC
most likely the cooperation of the junit module would be required here. Not sure
it's feasible to do for 6.0
Comment 3 Milos Kleint 2007-05-20 11:42:13 UTC
partially workarounded/fixed by creating the src/main/java and src/test/java
folders on creation of a new project. Won't influence behaviour of any existing
projects though.
Comment 4 Milos Kleint 2007-10-09 09:57:42 UTC
the issue is less visible now as the new project wizard creates the folders -> ENHANCEMENT
Comment 5 jonathanramsey 2008-05-15 14:07:25 UTC
Duplicated by http://jira.codehaus.org/browse/MEVENIDE-635
Comment 6 Milos Kleint 2009-02-18 11:34:35 UTC
test folder will be automatically created when needed now.
http://hg.netbeans.org/main/rev/e2a4b4dc410a

still leaving open as we should stop creating the empty test folders on project creation now..
Comment 7 Antonin Nebuzelsky 2010-04-08 12:05:42 UTC
Change of the default owner.
Comment 8 Jesse Glick 2010-07-28 23:34:39 UTC
Not sure what the new problem is, but original problem seems fixed to me.
Comment 9 Jesse Glick 2010-08-18 19:19:29 UTC
core-main #90dfdf5c376f
Comment 10 Quality Engineering 2010-08-20 03:10:27 UTC
Integrated into 'main-golden', will be available in build *201008200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/90dfdf5c376f
User: Jesse Glick <jglick@netbeans.org>
Log: #96266: Stop creating empty test folders on project creation