History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRVY-171
Type: Bug Bug
Status: Resolved Resolved
Resolution: Obsolete
Priority: Stopbuild Stopbuild
Assignee: Eugene Vigdorchik
Reporter: Graeme Rocher
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Groovy

When running unit tests in the Groovy/Grails projects the generated stub is run giving the impression the test was successful

Created: 17 Jul 07 17:52   Updated: 28 Jul 07 14:36
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
I'm using JetGroovy to develop Groovy/Grails and quite often I'm seeing that when a unit test is run the stub is executed giving the impression the test passed.

Or even worse sometimes a stub is used for the class that is being tested resulting in assertion failures that aren't representative of the real results of the test

The only way to get round these problems is to open the file which has a stub and resave it, then re-compile. Sometimes this even doesn't work and I have to fall back to running tests from the command line



 All   Comments   Work Log   Change History      Sort Order:
Eugene Vigdorchik - 17 Jul 07 19:17
What build of the plugin you use? We indeed had a problem with stub classes for tests being generated to production output, but this has been fixed some time ago.

Graeme Rocher - 17 Jul 07 19:24
i'm using the stable one posted on the jetbrains confluence on the 10th of july

Eugene Vigdorchik - 17 Jul 07 19:35
Ok, then I believe this is a duplicate of GRVY-130

Graeme Rocher - 23 Jul 07 19:34
This is still happening, I don't have permission to re-open the issue. It is happening less, but still there frequent enough that it is annoying.

Eugene Vigdorchik - 24 Jul 07 11:47
Have you made rebuild to clear previous stub output placed in wrong directory (production instead of test)?

Eugene Vigdorchik - 24 Jul 07 11:49
If you have, then I'm out of hypotheses, could you please post a sample project for me to reproduce?

Eugene Vigdorchik - 28 Jul 07 14:36
I was finally able to reproduce this on some old project, however making rebuild indeed made it go away, so I consider it had been fixed.