0

I'm using Eclipse and working on a J2EE project. We are trying to write Groovy/Spock tests for unit testing. The project is a Maven project and added Groovy nature to it. The problem is If I edit any of the Groovy test classes, It's doesn't get compiled. So running a test as Junit is not picking up the latest changes. I have to run a Maven build in order to pickup the recent changes test class.

My setup,

  • Groovy compiler 2.4
  • Installed Groovy-Eclipse plugin
  • Added Groovy nature to the project

Checked another question, it didn't help much Another Question

Community
  • 1
  • 1

1 Answers1

1

Un checked, the following fixed the issue.

Preferences > Groovy > compiler > Enable script Folder support