Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Tests in Groovy are not correct rerun

#42

Hi there,

I´m evaluating the Infinitest plugin in Intellij Idea.

If I create a Java class A and to java test classes ATest1 and ATest2
a change in class A leads to rerunning of ATest1 and ATest2.

Now I add two test classes for A in groovy (ATestGroovy1 and ATestGroovy2)
similar to ATest1 and ATest2.
Introducing a bug in A which breaks all 4 Test classes is only shown for java
test classes. The two groovy test classes don't get rerun (says the log)
Only compiling groovy test classes leads to rerunning them.

Thanks
Thomas

Reported by Thomas · March 14th, 2010 @ 01:45 AM

State: new
Milestone: none
Assigned to: benrady (at gmail) benrady (at gmail)

Activity

  1. John Woodward
    John Woodward
    • Milestone order changed from 0 to 0

    Hi guys; I'm working with Infinitest on my new project. The good news is that when creating a groovy test case, the test is executed by Infinitest, as Thomas described. When editing code that the tests are executing, however, as Thomas describes, the test case isn't picked up and run for some reason.

    Another note is that when the groovy test case runs, if there is an error, the location of the error is not identified (the resource & location are both blank, and the line number is always indicating 0).

    Sigh ... the current shop I'm working at has a fair amount of groovy code, and to be honest, it's pretty cool. Unfortunately, until we can get Infinitest working more reliably with groovy code, it's liable to see limited adoption here.

    john

    October 19th, 2010 @ 06:38 PM

  2. John Woodward
    John Woodward

    Hey .. just noticed that it does look like dependent groovy unit tests are now being updated when a groovy class is updated; this started happening after I did an update to the latest Springsource Tool Set (STS) ... 2.5 ... release over the weekend.

    Woot!

    john

    October 25th, 2010 @ 03:12 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.