#1180 Testing using Netbeans plug-in (FantomIDE)

auxbuss Fri 20 Aug 2010

Is there a way to run tests, and auto build on changes, when using the FantomIDE Netbeans' plug-in?

Also, currently, trying to run the tests in Netbeans fails with a call to main():

ERROR: missing main method: TestClassSomething.main()

This is no great surprise.

I'm a TDD guy and I while I _can_ work from the CLI, it's not viable. I'm sure you know what I'm looking for by comparison with the Java/JUnit equivalent. I appreciate the plug-in is a work in progress.

I'm really impressed with fantom, really impressed, but without good tools' support, I think it will struggle to gain traction.

tcolar Fri 20 Aug 2010

You can run all tests of a pod, by right clicking on the pod and then choosing "test pod".

I haven't implemented "test file" (single file) yet, although that should be trivial, so I assume you are doing "run file" which would require a main (not intended to run a test).

"Autobuild on Change" ... not sure what you mean by that, if you means build as soon as any source is changed ... not to sure about that, maybe rather:

  • Build whenever a source file is saved (IMO it's still kinda annoying but some people like it that way).
  • Build and Test at once .. would be easy to add.

I guess the main thing you are missing is the ability to run a single test right ? I could add this very easily.

keilw Sat 21 Aug 2010

Anybody who this works for correctly? If so, which NetBeans version is best?

I may have a chance to meet some of the NB guys personally in CZ, but of course I don't know, if they could help on some of these issues. NB has suffered under Oracle, but so far intents to keep it alive for the time being seem to exceed those to put it down.

katox Sat 21 Aug 2010

@kellw Do you plan a Fantom talk in Prague? I'll attend it ;)

keilw Sun 22 Aug 2010

If there's a venue, I'd love to. So far only informal meeting with Oracle/NB staff is planned, but I'll drop them a note of your interest and ask if they were able to host something like that.

I came by Oracle's huge office in Prague at this address: Škrétova 12 120 00 Praha 2 - Vinohrady

Unless NetBeans was at a completely different address, I hope this location may offer some room for such a talk (the building has plenty of "Office for Hire" signs, but knowing that they may ask for money, let's see and hope, OpenSource, NetBeans and JCP.org EC connections may open some doors ;-)

keilw Mon 23 Aug 2010

@katox Potentially Sun/NB officials may be interested, but they'd like to know more. Are you alone or are there other colleagues, students, etc. who share the same interest?

katox Mon 23 Aug 2010

There are some other people who would be interested (5-10 devs is my guess) but I would need to know an approximate date/time/place... Mostly not students so it'd rather be later in the afternoon or so...

tcolar Mon 23 Aug 2010

NB 6.9 should work the best. If you have any questions/requests about my Fantom NB plugin , let me know: tcolar AT colar dot net

tcolar Tue 24 Aug 2010

FYI, I've implemented most features you requested:

  • Wizard for "new test" with template
  • Run single test / Build&Run single test and so on.
  • I upgraded the NB stack to 6.9.1 to take advantage of a couple bug fixes.

On the not so good side it seem in 6.9.1 the keystroke handler is completely ignored (dunno why yet), anyway that is why the auto-indentation is broken, as well as bracket matching.

Will try to figure that one out and make a new build this week.

tcolar Tue 24 Aug 2010

I fixed the KeystrokeHandler issue and pushed a new build (1.6.4):

Download: http://fantomide.colar.net/install

Changes:

  • Fantom 1.0.54
  • Netbeans stack 6.9.1
  • Wizard/template to create Fantom unit tests
  • Allowing to run Single unit test
  • Replaced deprecated CSL jar to fix broken indentation and other features in NB 6.9.1

keilw Fri 27 Aug 2010

@katox Cool, I think I have a place now, and with approx. 10 of you added to the 50-100 they normally gather, Fantom should have a good chance with NetBeans/PragueJUG

Their news/venue should be here (in Czech ;-) http://java.cz/article/czjug

From all I know now, their next meeting is scheduled on Sep 27th. Just the day after I return from JavaOne which allows me to spread news about Java's future, and talk about Fantom potentially after meeting even some of the US-committers to these projects. If not at least jodastephen who speaks there about JodaTime/JSR-310 and I think about dynamic languages (where Fantom is likely to also be a topic ;-)

katox Sat 28 Aug 2010

@kellw Great news ;). Speaking on the next czjug you will have perfect target audience (java crowd but many early adopters). There is also a good tradition to go to a near pub afterwards continuing the discussion more informally ;).

keilw Sun 29 Aug 2010

you must have some strange font or monitor @katox, my alias is "KEILW", not "KELLW", but never mind ;-)

Login or Signup to reply.