Re: JUnit Tutorial Update

2022-01-18 Thread Michael Bien
sure that would be great i think. Btw you have to CC the mails to the 
mailing list otherwise the thread will look very one sided :) Updated 
the thread title too.


don't know what others think, but I would probably drop junit 3 and 4 
entirely and only have a concise tutorial for the latest version using 
maven.


-mbien

On 19.01.22 07:56, Arnaud bourree wrote:

Yes this outdated tutorial

Le mer. 19 janv. 2022 à 07:22, Michael Bien  a écrit :

this tutorial?
https://netbeans.apache.org/kb/docs/java/junit-intro.html

or do you mean something else?

-mbien

On 19.01.22 07:00, Arnaud bourree wrote:

Hi,

NB14 will let me time to (re)write JUnit tutorial.

About tutorial, should I start with a fresh one, or should have
to update the existing one?
My feeling about tutorial should be more how Netbeans help us to
write/run tests than what are JUnit tests. What do you think?

Regardes

Arnaud




Re: [C/C++] Unable to install and use clangd protocol server

2022-01-18 Thread antonio

Hi,

NetBeans does indeed use ccls[1] or clangd[2] (with a d), not clang.

Both of them are LSP Servers for C/C++ (and more languages).

You can use these LSP Servers with some other editor (Vim, Emacs, 
VSCode, etc.).


We are trying to recover some of the previous NB<=8.2 C/C++ features, 
too. These will arrive into NetBeans in the future.


Cheers,
Antonio

[1]
https://github.com/MaskRay/ccls

[2]
https://clangd.llvm.org/

El 18/1/22 a las 20:29, slipbits escribió:
I think that NB should change to 'clangd' to 'clang' to clear up any 
confusion


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: How to run/debug Integration Test class from contextual menu?

2022-01-18 Thread Michael Bien

this tutorial?
https://netbeans.apache.org/kb/docs/java/junit-intro.html

or do you mean something else?

-mbien

On 19.01.22 07:00, Arnaud bourree wrote:

Hi,

NB14 will let me time to (re)write JUnit tutorial.

About tutorial, should I start with a fresh one, or should have to 
update the existing one?
My feeling about tutorial should be more how Netbeans help us to 
write/run tests than what are JUnit tests. What do you think?


Regardes

Arnaud

Le mar. 18 janv. 2022 à 20:12, Michael Bien  a écrit :

i saw it, looks good on first glance but i had no time to test it
so far - thanks!

i put it on the NB14 milestone since NB13 is in feature freeze.

congrats for your first contribution,

-mbien

On 18.01.22 06:38, Arnaud bourree wrote:

Hi,

Here it is my first contribution to NetBeans:
https://github.com/apache/netbeans/pull/3470
Maybe to late for NB13.

Regardes

Arnaud

Le jeu. 13 janv. 2022 à 15:40, Arnaud bourree
 a écrit :

Again thanks you William

I said that custom action cannot provide workaround : that's
false

Here is workaround to run all tests from on integration test
class:

 1. right click in editor of you integration test file
 2. select "Run Maven >" then "Goals..."
 3. as Goals, enter "integration-test" or "verify", I select
verify because I expect post-integration-test to be run
after test
 4. as Properties, enter like in integration-test default action:
test=DummyToSkipUnitTests
failIfNoTests=false
it.test=${packageClassName}
 5. check "Remember as" and enter a name, I choose "Run IT test"

Et voila, tests of your integration test class run.
Thanks to point 5, now, you can run an integration test class
by selectin "Run IT test" at point 2.

At the end, you should have in nbactions.xml file in your
project on action likes:

            CUSTOM-Run IT test
            Run IT test
false
            
verify
            
            
DummyYoSkipUnitTests
false
${packageClassName}
            
        

Regards,

Arnaud

Le jeu. 13 janv. 2022 à 14:04, Arnaud bourree
 a écrit :

Thank you William.

I never use Gradle, I suppose you are right.

With Maven's project, we can also add custom actions,That
could be a good workaround.
But actions are not contextual actions such as "Test
File" or "Run Focused Test Method", they work at project
level not file level, or I don't understand how they work.

Regards,

Arnaud

Le jeu. 13 janv. 2022 à 00:48, * William
 a écrit :

Hi Arnaud,

I am able to run integration tests from the netbeans
project tree using Gradle, may be there is something
similar with Maven.  Under each project you want to
use a Gradle task you can set-=up an entry in the
project's "gradle.properties" file, so:

##  Netbeans Actions
##
##        * Gradle tasks
##
    action.custom-1=intTest
action.custom-1.args=--configure-on-demand -w -x
check intTest
    action.custom-2=intTest_debug
action.custom-2.args=--configure-on-demand -w -x
check intTest --debug-jvm

I am not sure if there is a Gradle plugin required to
achieve this though, it just worked when I did it
after reading a stackoverflow post.

It is well worth checking for a Maven equivalent to
the custom actions.  Another approach is to convert
from Maven to Gradle which has a learning curve of
course.

Good luck there.  I'm for any thing that advances
testing.

-- 
aloha,

         \_w_/
 ___

On Tue, 4 Jan 2022 at 23:44, Arnaud bourree
 wrote:

Hello,

I use Netbeans 12.6 on Windows server 2016 with
OpenJDK 11 and Maven 3.6.3

I've some integration tests written with JUnit
that Maven knows how to launch with failsafe.
I'd like to run integration tests like unitary
tests from Netbeans.
I saw that there are project actions "Integration
test file" and "Debug integration test".
I expect Netbeans to propose to me something

How to get Netbeans commercial support

2022-01-18 Thread 王东华
Is anybody know how to get Netbeans commercial support?
I send email to this address: oliver.ret...@orat.de, but did not get any reply.





Re: [C/C++] Unable to install and use clangd protocol server

2022-01-18 Thread slipbits

Thanks;

After I followed Bradley Willcott's directions I returned to 
Tools->Options->C/C++ and found that it (now) contained linkages to 
clang, not clangd. Before this change the C/C++ options where for ccls 
and clangd, not clang. You are probably correct in that I downloaded the 
indexer, but I think that NB should change to 'clangd' to 'clang' to 
clear up any confusion, not to say that I won't continued to be confused.


art

On 1/18/2022 9:33 AM, antonio wrote:

Hi there,

The "clangd for Windows" does not have any "clangd-index-server.exe", 
nor "clangd-indexer.exe", just a "clangd.exe". You've probably 
downloaded the indexer, not the clangd.


Just unzip clangd zip file somewhere in a directory in your disk. If 
you have this directory in your PATH then NetBeans should find it for 
you. Otherwise you'll have to add it manually (say 
"C:\Users\whatever\clang\bin\clangd.exe).


Cheers,
Antonio



On 17/01/2022 22:17, slipbits wrote:
'm trying to host all my C/C++ projects on Netbeans (because I like 
NB) and am having some difficulty. NB tools->options->C/C++ requires 
either a ccls or clangd 
protocol 
server. I downloaded clangd 
 for windows 
 
as a zip file and then extracted clangd-index-server-monitor.exe, 
clangd-index-server.exe. clangd-indexer.exe to my cygwin /bin 
directory. Then, in turn, I changed the C/C++ "clangd Location" to 
each of  the files (/bin/). In all cases I was then unable 
to modify my project file (below).


H



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: How to run/debug Integration Test class from contextual menu?

2022-01-18 Thread Michael Bien
i saw it, looks good on first glance but i had no time to test it so far 
- thanks!


i put it on the NB14 milestone since NB13 is in feature freeze.

congrats for your first contribution,

-mbien

On 18.01.22 06:38, Arnaud bourree wrote:

Hi,

Here it is my first contribution to NetBeans: 
https://github.com/apache/netbeans/pull/3470

Maybe to late for NB13.

Regardes

Arnaud

Le jeu. 13 janv. 2022 à 15:40, Arnaud bourree 
 a écrit :


Again thanks you William

I said that custom action cannot provide workaround : that's false

Here is workaround to run all tests from on integration test class:

 1. right click in editor of you integration test file
 2. select "Run Maven >" then "Goals..."
 3. as Goals, enter "integration-test" or "verify", I select
verify because I expect post-integration-test to be run after test
 4. as Properties, enter like in integration-test default action:
test=DummyToSkipUnitTests
failIfNoTests=false
it.test=${packageClassName}
 5. check "Remember as" and enter a name, I choose "Run IT test"

Et voila, tests of your integration test class run.
Thanks to point 5, now, you can run an integration test class by
selectin "Run IT test" at point 2.

At the end, you should have in nbactions.xml file in your project
on action likes:
        
            CUSTOM-Run IT test
            Run IT test
            false
            
                verify
            
            
DummyYoSkipUnitTests
false
${packageClassName}
            
        

Regards,

Arnaud

Le jeu. 13 janv. 2022 à 14:04, Arnaud bourree
 a écrit :

Thank you William.

I never use Gradle, I suppose you are right.

With Maven's project, we can also add custom actions,That
could be a good workaround.
But actions are not contextual actions such as "Test File" or
"Run Focused Test Method", they work at project level not file
level, or I don't understand how they work.

Regards,

Arnaud

Le jeu. 13 janv. 2022 à 00:48, * William
 a écrit :

Hi Arnaud,

I am able to run integration tests from the netbeans
project tree using Gradle, may be there is something
similar with Maven.  Under each project you want to use a
Gradle task you can set-=up an entry in the project's
"gradle.properties" file, so:

##      Netbeans Actions
##
##        * Gradle tasks
##
    action.custom-1=intTest
    action.custom-1.args=--configure-on-demand -w -x check
intTest
    action.custom-2=intTest_debug
    action.custom-2.args=--configure-on-demand -w -x check
intTest --debug-jvm

I am not sure if there is a Gradle plugin required to
achieve this though, it just worked when I did it after
reading a stackoverflow post.

It is well worth checking for a Maven equivalent to the
custom actions.  Another approach is to convert from Maven
to Gradle which has a learning curve of course.

Good luck there.  I'm for any thing that advances testing.

-- 
aloha,

         \_w_/
 ___

On Tue, 4 Jan 2022 at 23:44, Arnaud bourree
 wrote:

Hello,

I use Netbeans 12.6 on Windows server 2016 with
OpenJDK 11 and Maven 3.6.3

I've some integration tests written with JUnit that
Maven knows how to launch with failsafe.
I'd like to run integration tests like unitary tests
from Netbeans.
I saw that there are project actions "Integration test
file" and "Debug integration test".
I expect Netbeans to propose to me something like
"Test Integration File" instead of "Test File" on
JUnit tests matching failsafe configuration : it doesn't.

I didn't find any web pages explaining how to nor any
limitation?

Any idea how to?

Regards,

Arnaud




Re: [C/C++] Unable to install and use clangd protocol server

2022-01-18 Thread antonio

Hi there,

The "clangd for Windows" does not have any "clangd-index-server.exe", 
nor "clangd-indexer.exe", just a "clangd.exe". You've probably 
downloaded the indexer, not the clangd.


Just unzip clangd zip file somewhere in a directory in your disk. If you 
have this directory in your PATH then NetBeans should find it for you. 
Otherwise you'll have to add it manually (say 
"C:\Users\whatever\clang\bin\clangd.exe).


Cheers,
Antonio



On 17/01/2022 22:17, slipbits wrote:
'm trying to host all my C/C++ projects on Netbeans (because I like NB) 
and am having some difficulty. NB tools->options->C/C++ requires either 
a ccls or clangd 
protocol server. I 
downloaded clangd  
for windows 
 
as a zip file and then extracted clangd-index-server-monitor.exe, 
clangd-index-server.exe. clangd-indexer.exe to my cygwin /bin directory. 
Then, in turn, I changed the C/C++ "clangd Location" to each of  the 
files (/bin/). In all cases I was then unable to modify my 
project file (below).


H



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists