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 217647 - Add option to the find dialog to optionally "search in tests"
Summary: Add option to the find dialog to optionally "search in tests"
Status: NEW
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
: 222484 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-30 19:19 UTC by markiewb
Modified: 2012-12-15 08:05 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Dialog example with new checkbox (13.58 KB, image/png)
2012-08-30 19:19 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2012-08-30 19:19:17 UTC
Created attachment 123754 [details]
Dialog example with new checkbox

The find dialog currently allows to 
* search in archives
* search in generated sources
But for some reasons i want also to exclude the search to look in the test-directory while searching the project. 

Add a checkbox named "Search In Tests", which is checked by default (to keep the previous behaviour). When the checkbox is unchecked then folders which are marked as Unit-Tests/"Unit Test Packages" will be excluded for searching.

See screenshot for dialog sample.

---
Note: A known workaround is to multi-select the non-test directories and then invoke the find action, but the requested feature simplifies the whole procedure.

--------
Product Version: NetBeans IDE 7.2 (Build 201207171143)
Comment 1 Jaroslav Havlin 2012-08-31 13:34:29 UTC
I'm afraid that this use-case is quite rare and adding another checkbox to the UI would make the dialog quite complicated.

Did you consider adding file path pattern "\/src\/test\/" (or something similar that corresponds to your needs) to the Ignore List?
Comment 2 markiewb 2012-12-15 07:47:13 UTC
*** Bug 222484 has been marked as a duplicate of this bug. ***
Comment 3 markiewb 2012-12-15 08:05:18 UTC
FYI: 
* A workaround (when #200020 is implemented) would be that the user can remove the test-folder node from the search results.