TestNG plugin - plugin detail

Basic support for TestNG testing framework

n/a
Plugin owner: jungi
Website: http://wiki.netbeans.org/TestNG
Added: 2011-05-15
License: The Common Development and Distribution License (CDDL) and GNU Public License v.2 w/Classpath Exception
Category: Testing
Downloaded: 4,137 times
Rating:
 3.73, by 1 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.62 MB   Last Update: 2011-05-15

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version



Verifications for NetBeans versions

7.0 verification PASSED See verification details


Introduction

Plugin provides support for creating, running and debugging tests based on TestNG testing framework.

[ You have to be logged in to be able to comment. ]

User Comments

  

re: Template fails to fill in and generates invalid source file

Hi,

For some reason the plugin was improperly enabled. I found that out as I was playing around in the Plugins dialog box. When I went to the Installed tab and checked the Show Details checkbox it shows much more info and all the TestNG entries were unchecked. They don't even show without that checkbox being selected. Enabling them made everything work.

I ended up doing a reinstall just to be certain there weren't other issues and found that it now had a newer version of the TestNG framework (6.0.1 versus 5.11), and that also worked fine. I am not sure why my earlier install was in such a strange state, but it is working now.

I still need to grok how to configure it to run tests both within and outside of the IDE, as this is all new to me, but thanks for providing this support in Netbeans.
Posted by lvskiprof on Jun 30, 2011
  

re: Template fails to fill in and generates invalid source file

Hi,

can you provide some more info, please? ie project type for which this happens, os, jdk, nb version... I'm asking because it works fine for me.

thx
Posted by jungi on Jun 17, 2011
  

Template fails to fill in and generates invalid source file

When I do a "New File..." and select TestNG as the type I get this for a source file (obviously this is supposed to get filled in during creation, but it is not):

<#assign licenseFirst = "/*">
<#assign licensePrefix = " * ">
<#assign licenseLast = " */">
<#include "../Licenses/license-${project.license}.txt">

<#if packagecurrent?? && package

!= "">
package $
{package};

#if>
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

/**
*
* @author ${user}
*/
public class ${

name
}
{

@BeforeClass
public void setUp()
{
// code that will be invoked before this test starts
}

@Test
public void aTest()
{
System.out.println("Test");
}

@AfterClass
public void cleanUp()
{
// code that will be invoked after this test ends
}
}
Posted by lvskiprof on Jun 16, 2011
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo