Xzajo's Weblog

All | Java | nbxdoclet | NetBeans | Personal | Project Extensions | Sun | Testing
« Previous day (Apr 2, 2006) | Main | Next day (Apr 3, 2006) »
20060403 Monday April 03, 2006

Test NG plugin for NetBeans 5.0

I finished Test NG project extension for NetBeans 5.0 yesterday in train from Ostrava to Prague. I would like to commit it into cvs because I cannot access to CVS server on sourceforge.net. Probably ssh server is down :(. I'll try describe how to use this plugin:

Create New Test NG case from template:

Generated code of test is here :

package sd ;

import org.testng.Assert;
import org.testng.annotations.Configuration;
import org.testng.annotations.ExpectedExceptions;
import org.testng.annotations.Test;

public class NewTest {
  @Configuration(afterTestClass = true)
  public static void tearDownClass() {
  }

  @Configuration(afterTestMethod = true)
  public void afterTestMethod() {
  }


  @Test(groups = { "My group" })
  public void testMethod1() {
      Assert.fail("failure");
  }

The Test NG Project Extension is automatically added to project extensions. There are two action for the extension - Run Tests and Show Results. Look at the snapshot:

Results are shown in web browser:

How to install and download the plugin is here.

Posted by xzajo ( Apr 03 2006, 08:22:13 PM CEST ) Permalink Comments [196]

Calendar

RSS Feeds

Search

Links

Navigation

Referers