#42 new
Thomas

Tests in Groovy are not correct rerun

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

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

Comments and changes to this ticket

  • John Woodward

    John Woodward October 19th, 2010 @ 06:38 PM

    • 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

  • John Woodward

    John Woodward October 25th, 2010 @ 03:12 PM

    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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Continuous Test Runner for Java

Shared Ticket Bins

Tags

Pages