sbt-eclipse icon indicating copy to clipboard operation
sbt-eclipse copied to clipboard

sbteclipse does not create <classpathentry kind="src" ...> for "it" and "e2e" test directories

Open Zahnentferner opened this issue 9 years ago • 2 comments

I have created special folders and sbt tasks for integration tests and end-to-end tests, following these instructions: https://orrsella.com/2014/09/24/integration-and-end-to-end-test-configurations-in-sbt-for-scala-java-projects/ .

I expected sbteclipse to automatically add

  <classpathentry kind="src" path="src/it/scala"/>
  <classpathentry kind="src" path="src/e2e/scala"/>

to .classpath. But it didn't. I had to add this information manually.

Zahnentferner avatar Nov 17 '16 04:11 Zahnentferner

Yeah, I have had issues with that too. We have src/it directories that have to be manually added to 'java buld path' every time the projects are generated.

scottcarey avatar Nov 28 '16 05:11 scottcarey

From the docs:

configurations

This setting of type Set[Configuration] lets you control the configurations to take into account. It defaults to Set(Compile, Test).

I think you will need to add IntegrationTest and whatever your e2e configuration is called to this key

DavidGregory084 avatar Dec 07 '17 19:12 DavidGregory084