[ https://issues.apache.org/jira/browse/GROOVY-4590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14977733#comment-14977733 ]
John Wagenleitner commented on GROOVY-4590: ------------------------------------------- I can't reproduce this anymore. Looks like since 2.x testng is now included in the distribution. Wonder if this can be resolved? > TestNG classes do not run within groovyConsole > ---------------------------------------------- > > Key: GROOVY-4590 > URL: https://issues.apache.org/jira/browse/GROOVY-4590 > Project: Groovy > Issue Type: Bug > Components: Groovy Console > Affects Versions: 1.7.5 > Reporter: dariusan > > Following code: > {code} > import org.testng.annotations.Test; > class A{ > @Test > void a(){ > println "hello" > } > } > {code} > leads to: > {code} > org.testng.TestNGException: > Cannot find class in classpath: A > {code} > while changing import to: > {code} > import org.junit.Test > {code} > works as expected within groovyConsole and gives: > {code} > hello > JUnit 4 Runner, Tests: 1, Failures: 0, Time: 16 > Result: org.junit.runner.Result@a42c89 > {code} > Should TestNG classes not also run using groovyConsole? -- This message was sent by Atlassian JIRA (v6.3.4#6332)