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 226185 - for tests folder no menu "Upload"
Summary: for tests folder no menu "Upload"
Status: REOPENED
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 15:39 UTC by fredgarlov00
Modified: 2013-06-10 07:48 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
snapshot taken while waiting for goto method (clicked in navigator window) (105.70 KB, application/octet-stream)
2013-05-17 20:21 UTC, fredgarlov00
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fredgarlov00 2013-02-15 15:39:23 UTC
7.3RC2. 

If one define tests folder in project, then folders under tests don't have Upload entry in context menu. It's very annoying since Netbeans not always upload files. Often I must do it manually to be sure everything is uptodate on the server (usually after git pull).
Comment 1 Tomas Mysik 2013-02-25 06:32:02 UTC
This is intentional, only Source Files can be uploaded to a remote server (where to upload Test Files? To the same directory as Source Files? Or...?). BTW if one has Test Files underneath Source Files, then test files are uploaded/downloaded as well.

Thanks for reporting.
Comment 2 fredgarlov00 2013-02-25 20:04:03 UTC
I've following project directory structure:

application
data
libraries
tests


so tests are under sources for me. If I define Test folder in project properties, then upload context menu disappears from folders under tests. I realize I could click on sources and then deselect all checkboxes but for tests. But it is a costly and rather longer operation.

IDE could detect, that tests are underneath of sources and just handle them as sources. In example abouve, it would just upload tests to remote tests folder. It's a PHP project and it is common situation to execute tests on remote machine and not on the locale one.
Comment 3 Tomas Mysik 2013-02-26 05:49:46 UTC
If the Test Files are underneath Source Files, this could be likely done. OTOH it could be quite confusing - Test Files of some projects can be uploaded/downloaded but not for all projects.

Thanks.
Comment 4 fredgarlov00 2013-05-17 20:21:30 UTC
Created attachment 134578 [details]
snapshot taken while waiting for goto method (clicked in navigator window)
Comment 5 fredgarlov00 2013-05-17 20:25:31 UTC
please ignore the last snapshot. it is for the issue #225861
Comment 6 fredgarlov00 2013-06-08 17:11:01 UTC
Hello!

Any chance to implement it? I had to unset test folder definition for project, to be able manually upload test files.
Comment 7 Tomas Mysik 2013-06-10 05:17:45 UTC
Unfortunately not, see my comments. They first need to be resolved and we really do not know how... :/

Thanks.
Comment 8 IfElseTrue 2013-06-10 07:37:24 UTC
(In reply to comment #7)
> Unfortunately not, see my comments. They first need to be resolved and we
> really do not know how... :/
> 
> Thanks.


May be separate option in project settings. Something like "Upload tests to same destination as the source files"

I think many PHP projects have to upload test files, if a developer works on windows machine and the project runs on linux, the setup is obviously not the same. So the test must be run on remote host not local
Comment 9 Tomas Mysik 2013-06-10 07:48:41 UTC
(In reply to comment #8)
> May be separate option in project settings. Something like "Upload tests to
> same destination as the source files"

Such "dummy" checkbox could be added but I am a bit afraid of possible use cases... In any case, unfortunately too late for NB 7.4, let's try it in the next version of NetBeans.

Thanks.