Re: NetBeans 10 JUnit support

2019-01-18 Thread Pieter van den Hombergh
in theory it should be doable. the mechanisms to distinguish beteen testng and junit could be extended in the build-impl.xml inside the nbproject folder. there the antscript evaluates the classpath on testng or junit4 artifacts. once that is determined, the script selects the proper runner. this lo

Re: NetBeans 10 JUnit support

2019-01-18 Thread Geertjan Wielenga
Related to this: https://netbeans.org/bugzilla/show_bug.cgi?id=245637 https://hg.netbeans.org/web-main/rev/459035808e45 The above is how upgrading to 4.12 was done. Gj On Fri, Jan 18, 2019 at 9:26 PM Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: > Great to hear, thanks. Will inv

Re: NetBeans 10 JUnit support

2019-01-18 Thread Geertjan Wielenga
Great to hear, thanks. Will investigate too. We need to get JUnit 5 support for Ant, clearly, quite a few people asking for this who're not ready or never will be ready to use Maven. Any insights anyone can provide around how best to do this would be appreciated, I'll be investigating this too.

Re: NetBeans 10 JUnit support

2019-01-18 Thread John McDonnell
Hi Geertjan I didn't remove any dialog. Not near a laptop at present but I don't remember seeing that dialog for a few versions now... maybe it only showed when you had a lower version of java that could support JUnit 3 or 4. But then again at lease in NB 8.2 if you had a java 8 project no dialog

Re: NetBeans 10 JUnit support

2019-01-18 Thread Geertjan Wielenga
I was looking at this today and I can't find the "Select JUnit Version" dialog, which is there in the tutorial, but not in Apache NetBeans 10: https://netbeans.org/kb/docs/java/junit-intro.html @John McDonnell , I guess you removed that dialog so that only JUnit 5 tests can now be created? I'm no

Re: NetBeans 10 JUnit support

2019-01-14 Thread John McDonnell
This looks familiar... This was around the area where I got stuck. I had found https://github.com/apache/incubator-netbeans/tree/master/java/java.j2seproject/src/org/netbeans/modules/java/j2seproject/resources where theres a reference to j2seproject3:junit in the build-impl.xsl but dont believe I

Re: NetBeans 10 JUnit support

2019-01-14 Thread Peter Hull
On Fri, Jan 11, 2019 at 9:38 AM Peter Hull wrote: > If I can, I will try and manually get JUnit 5 tests working and make > list of what I had to add/change. I do need a bit more help on this (John McDonnell?) I added these files to netbeans/extide/ant/lib: * junit-platform-commons-1.3.1.jar * juni

Re: NetBeans 10 JUnit support

2019-01-11 Thread Peter Hull
On Fri, Jan 11, 2019 at 10:10 AM Tushar Joshi wrote: > I remember JUnit 3.8.1 being used for many years even when JUnit 4 was the > standard. > Project have reluctance for shifting an existing JUnit library for many > reasons. > > Given that we should have both JUnit versions 4.11 as well as 5.x

Re: NetBeans 10 JUnit support

2019-01-11 Thread Emilian Bold
I think we should also ask ourselves if the IDE NetBeans must promote JUnit 5 or not. I don't see a big push from actual users for JUnit 5. And for most users JUnit 4 is quite adequate (and I wonder how many are picking 5 because it's newer versus because they are actually missing something in JUn

Re: NetBeans 10 JUnit support

2019-01-11 Thread Tushar Joshi
> > JUnit 5 is supposed to co-exist > with 4, or whether 4 is now done and everyone should be moving on. > I remember JUnit 3.8.1 being used for many years even when JUnit 4 was the standard. Project have reluctance for shifting an existing JUnit library for many reasons. Given that we should hav

Re: NetBeans 10 JUnit support

2019-01-11 Thread Peter Hull
On Thu, Jan 10, 2019 at 7:47 PM John McDonnell wrote: > I think at a minimum it requires an upgrade to the bundled Ant version, and > then some changes to some internal build.xml's (which I think is where I got > lost previously) NetBean's version of ant is 1.10.4 and that does have the `junitla

Re: NetBeans 10 JUnit support

2019-01-10 Thread John McDonnell
I think at a minimum it requires an upgrade to the bundled Ant version, and then some changes to some internal build.xml's (which I think is where I got lost previously) I can take another look next week (or maybe near the end of the month now that I look at my calendar ), and kick it off in dev m

Re: NetBeans 10 JUnit support

2019-01-10 Thread Geertjan Wielenga
Could we take a look at this for Apache NetBeans 11? The simplest requirement is that the process of using JUnit 5 with Ant should be as simple as in 8.2 with JUnit 4. Several are reporting having problems with this and can’t all switch to Maven. Gj On Thu, 10 Jan 2019 at 15:52, John McDonnell w

Re: NetBeans 10 JUnit support

2019-01-10 Thread John McDonnell
Yep... We never got around to implementing JUnit 5 support for Ant based projects in NB 10. Im not really an Ant user and did try to take a look a t what would be required but never got to a final solution for it. Regards John On Thu 10 Jan 2019, 11:16 Geertjan Wielenga Recommend you use Mave

Re: NetBeans 10 JUnit support

2019-01-10 Thread Geertjan Wielenga
Recommend you use Maven in NetBeans, which will cause the dependencies, including that one, to automatically be added. Gj On Thu, Jan 10, 2019 at 12:14 PM Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: > Seems to be related to this: > > https://github.com/junit-team/junit5/issues/1

Re: NetBeans 10 JUnit support

2019-01-10 Thread Geertjan Wielenga
Seems to be related to this: https://github.com/junit-team/junit5/issues/1104 Gj On Thu, Jan 10, 2019 at 12:11 PM Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: > reason: class file for org.apiguardian.api.API$Status not found > > No idea what 'org.apiguarian.api.API' is. > > Gj >

Re: NetBeans 10 JUnit support

2019-01-10 Thread Geertjan Wielenga
reason: class file for org.apiguardian.api.API$Status not found No idea what 'org.apiguarian.api.API' is. Gj On Thu, Jan 10, 2019 at 11:10 AM Peter Hull wrote: > Hi all, > I was trying to add Tests to a Java SE project and it didn't work. So > I went back to the simplest case to try again. > 1

NetBeans 10 JUnit support

2019-01-10 Thread Peter Hull
Hi all, I was trying to add Tests to a Java SE project and it didn't work. So I went back to the simplest case to try again. 1. Create a new Java Application with default main class 2. Select Tools|Create/Update Tests, press OK 3. (IDE creates files and adds a default test for 'main') 4. Select Run