TestNG for Eclipse

Add this URL to your Eclipse Installation to reach this solution's update site.

2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6), Mars (4.5), Luna (4.4), Kepler (4.3), Juno (4.2, 3.8), Previous to Juno (<=4.1)


Learn more...
Solution Description

This plug-in lets you run your TestNG tests from Eclipse. You can run suites, groups or individual methods. Errors are reported in a separate tab that lets you jump to failing tests efficiently. The plug-in also contains several templates to create tests easily.

Categories: Testing

Additional Details

Eclipse Versions: 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6), Mars (4.5), Luna (4.4), Kepler (4.3), Juno (4.2, 3.8), Previous to Juno (<=4.1)

Platform Support: Windows, Mac, Linux/GTK

Organization Name: Cédric Beust

Development Status: Production/Stable

Date Created: Thursday, June 24, 2010 - 09:51

License: Apache 2.0

Date Updated: Tuesday, May 30, 2023 - 01:28

Submitted by: Cedric Beust

Date Ranking Installs Clickthroughs
July 2024 2/645 13383 10
June 2024 2/681 20259 24
May 2024 2/682 22287 172
April 2024 1/687 22253 25
March 2024 1/694 25158 28
February 2024 1/687 22810 288
January 2024 2/691 21962 48
December 2023 2/671 21040 16
November 2023 2/686 21274 26
October 2023 2/673 23525 34
September 2023 2/663 23802 15
August 2023 1/673 26550 25
View Data for all Listings

Marketplace Drag to Install Button

By adding the following code below to your website you will be able to add an install button for TestNG for Eclipse.

HTML Code:

Markdown Syntax:


Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client

Reviews Add new review

Is Eclipse MarketPlace is giving trouble, probably because of SSL certificate issue in java cacert or anything, you can do offline installation. I downloaded the zip file from testng github page /testng-team/testng-eclipse, get the folders features and plugins, and put it inside eclipse installation directory/dropins folder


I added TestNG plugin and in the build path of an eclipse project. Then try to start a very simple TestNG class and get this error:

Error occurred during initialization of boot layer

java.lang.module.FindException: Unable to derive module descriptor for C:\.......\.p2\pool\plugins\com.beust.jcommander_1.78.0.jar . Caused by: java.lang.IllegalArgumentException: com.beust.jcommander.1.78.0: Invalid module name: '1' is not a Java identifier

Following advices in Internet, I tried to include TestNG System Library as Module dependencsy and then I removed the com.beust..... from exported modules and seems it start to launch, but get another error:

An internal error occurred during: "Launching NewTest". Cannot hide all modules, at least java.base is required

Can you please help me understand what's the problem?


TestNG plugin is installed in Eclipse, yesterday Eclipse got some updates and ok confirmed the updates then TestNG stopped working. I uninstalled and installed it again but still not working i can't see it in run configurations.

Hi Everyone this is been a issue since Exlipse 2021-06, seems there is some kind of acess restricoin we can not browse this url "beust.com/eclipse/"gets to "404 - Not found (beust.com)"

but there is a alrernate .

Go to install new software in Help Section

Then click on Add Button , there in Name Text box provied "TestNG"

then Location shoild be this "testng.org/testng-eclipse-update-site/zipped/"

put a Https before testng.org. since this comment box does not allow URL.

this helped me to get the plugin.


<p>Not able to install TestNG and Subclipse with Eclipse IDE for Enterprise Java Developers Version: 2019-09 R (4.13.0) Build id: 20190917-1200 Getting following error: Unable to read repository at PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</p>



<p>Please do the needful</p>


In reply to by Pratibha Mishraa

Hi. I had the same issue. All I did was:

  1. Go to Help->Install New Software
  2. Enter this URL https://marketplace.eclipse.org/content/testng-eclipse in the Work with input box
  3. Click on the 'Add' button
  4. TestNG will appear with a checkbox next to it.
  5. Check that box and click on 'Next' button.
  6. Wait for the plugin to download.

You're welcome :)

I was successfully able to install TestNg and tried to execute test cases and I am getting below errot along with the result.

java.lang.AssertionError: Couldn't find resource: jquery.min.js
    at org.testng.reporters.jq.Main.generateReport(Main.java:92)
    at org.testng.TestNG.generateReports(TestNG.java:1093)
    at org.testng.TestNG.run(TestNG.java:1036)
    at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)

I have followed the comments on the section to try and sort this error on my own, i have not found anything so far that works, gettting the below error, tried different also with version of Eclispe 2019-03 

"Unable to read repository at //testng.org/testng-eclipse-update-site/content.xml.
Certificate for <testng.org> doesn't match any of the subject alternative names: [www.github.com, *.github.com, github.com, *.github.io, github.io, *.githubusercontent.com, githubusercontent.com]"

openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)

Eclipse IDE for Java Developers (includes Incubating components)

Version: 2021-03 (4.19.0)
Build id: 20210312-0638


I see the below error when I try to install the TestNG plugin in my Eclipse either via the marketplace directly or using the new testng-update URLs. Has anyone ever faced this issue before and have any idea as to how to resolve it? Any help would be really appreciated. 

Eclipse version : 4.7.3a

Java version : 1.8.0._201


Unable to read repository at "testng.org/testng-eclipse-update-site/content.xml"
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I got my issue resolved by using a different offical link and was able to install TestNG version 7.4 in the eclipse version 2021-03. Please find the details below to install it:

1. Click "Help -> Install New Software..." on top level menu

2. Paste the url testng.org/testng-eclipse-update-site (use https://) and press enter.

3. Select the plugins

4. Click "Next" button and accept the license to complete the installation.

5. Restart Eclipse

Note: Source from official TestNG github link. 

In reply to by George Jose

I am using Eclipse Java EE IDE web developers version:2018-09                                                                                                          Followed the above steps. It worked for me                                                                                                                                                        Thank you

I am trying to install TestNG. The sites beust and lnkd.in/eQ9Z4Fx are not found and returns a 404. Tried downloading from TestNG page on Eclipse Market Place, but when tried to run the testNG program its showing error as its not compatible with eclipse 2020-12 version. Any other ideas from where to download testNG version which will work on eclipse 2020-12 #TestNG?

Hi, I tried installing TestnG from eclipse market place for Version: 2020-06 (4.16.0). But it shows TestNG version is not comaptible with this version of Eclipse.Even i tried using locations mentioned in previous posts.But shows same error couldn't find the file on these locations.Can anyone tell me which version of eclipse i should download or is there any workaround for this version?


Hi Friends,  That link provided in the eclipse.org is working perfectly.  I have installed it and working fine. 


GO to Help and select Install New Software >> Add >> Name TestNG and Location Paste this above link. 

Need to wait for processing.

Then you can see, it will install TestNG in the eclipse. 

Afternoon everyone, I am struggling to find a version of Eclipse that works with the TestNG plugin above. Is anyone able to assist.



In reply to by vinathi Malisetty

for the link.... someone replied to my post and it worked for me "dl.bintray.com/testng-team/testng-eclipse-release/". Copy/Paste that in address bar without double quotes. Then click on "zipped", then click on latest version and click on next link in the next page. 

That will download a zip file. Then in Eclipse click "Install New Software" in Help Menu, then Add, then Archive and route to downloaded zip.

Works perfectly

Just tried Lee Carver's suggestion with version 2019-12 and it worked.

beust.com/eclipse seems the way to go if you can't find it in the marketplace.

Hi All,

Our team found that TestNG plugin is not available to be installed in eclipse. Team tried from both the options available in Help like Market place and New Software installation through "beust.com/eclipose". Even beust site is not responding on either private or Public network. 

Request you all to check and respond with the solution. We tried every instaruction wriiten on below comments.


The Marketplace install for the latest versions of Eclipse (e.g. 2019-06) reports that the available release is incompatable with the running Eclipse.

The installer at beust.com/eclipse works fine. You simply need to add that URL as a known site for the Install New Software.. dialog.