This is a discussion on Amazing Test Infrastructure for NetBeans RCP Apps - Solaris Rss ; Yesterday and today I worked through a lot of the FAQs, mailing lists, and other random documentation on the web in order to figure out a simple procedure for setting up unit tests, functional tests, and code coverage measurement for ...
Yesterday and today I worked through a lot of the FAQs, mailing lists, and other random documentation on the web in order to figure out a simple procedure for setting up unit tests, functional tests, and code coverage measurement for a NetBeans Platform application. Turns out, it was really easy, since all the related frameworks are part and parcel of the NetBeans Platform build harness. Simply go to the "harness" folder in your NetBeans IDE installation and you'll see what I'm talking about. Everything from extensions to Jemmy and JUnit for NetBeans Platform applications, to code coverage via Cobertura.
So I wrote this new tutorial, describing it all:
I sent it around to a few people to review it and I got this interesting e-mail back from NetBeans Platform guru Tom Wheeler:"One thing that's noteworthy here (perhaps blogworthy) is that complete support for testing a platform application, including unit testing and functional testing -- plus reports showing you how effective that testing is -- comes "for free" when you build on the NetBeans Platform.I have a few tweaks to make to the tutorial, a few comments to process, but, really, it's all a pretty amazing thing. Forget about setting up unit test infrastructures, functional test infrastructures, and code coverage infrastructures, because the NetBeans Platform provides them out of the box. You simply need to use the existing infrastructure, rather than setting it up yourself. That's the point of the above tutorial.
With a regular Swing application, you usually have to go set up your Ant build file to compile, package, run, test and measure test coverage for the application. This takes a long time to do when starting from scratch and is even still tedious to try and reuse build files from some previous project.
This has already been done for you when you build on the platform, which means that the NetBeans Platform is a good choice for even small applications, because you'll spend less time writing build files and more time writing code. The platform's modular architecture will make it easier to maintain your application as it grows."
Read More about [Amazing Test Infrastructure for NetBeans RCP Apps...