Using Eclipse on Mac OS, I\'m trying to run simple code to test one testNG code(later to use with Jenkins):
package demoJenkins;
import org.junit.Test;
public
Not sure how do you setup your eclipse project, but according to the error msg, the TestNG is missing on runtime classpath.
correctly setup your eclipse project and classpath.
1a. it's recommended to use dependency management tool like Maven or Gradle.
1b. otherwise, you need to add TestNG to your project: right click your project -> Build Path -> Add Libraries -> select "TestNG" -> now you will see TestNG and it's dependencies jars on the Project Explorer view.
If still can't solve the issue, please attach a reproducible sample project.