You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/10/28 08:07:27 UTC
[jira] [Closed] (GROOVY-4590) TestNG classes do not run within
groovyConsole
[ https://issues.apache.org/jira/browse/GROOVY-4590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher closed GROOVY-4590.
-------------------------------------
Resolution: Fixed
As [~jwagenleitner] can no longer reproduce the problem I'm closing the issue. Thanks for looking into this John. :)
> 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)