jeudi 30 juin 2016

Run TestNg tests in Jetbrains Idea

I use comunity Idea(2016.1.3) and I'm trying to run TestNg tests. as a result I get such kind of exception: Exception in thread "main" java.lang.NoSuchMethodError: org.testng.IDEARemoteTestNG.configure(Lorg/testng/CommandLineArgs;)V

here is a screenshot:

enter image description here

But when I run test via console then everything fine. I use maven as build tool.

In some articles people suggest to add Maven Surefire Plugin. This plugin have been already added in pom file.

I suppose that may be I need to add extra values into run configuration for this test. Right now it looks like this:

enter image description here

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire