GC_
GC_

Reputation: 508

How can I change a source folder to a test source folder in Eclipse

How can I define a folder, in eclipse, as a test folder? On my machine, the test folder /src/test shows up correctly, with the test green test folder icon.

enter image description here

However, one a coworker's computer it shows as a source package. How do I assign/update this value?

Upvotes: 4

Views: 5641

Answers (1)

petrubear
petrubear

Reputation: 721

you have to go to Project -> Build Path -> Configure Build Path

Then in the Source tab, you choose "Add Folder" and select that src/test/java, once it is added to your sources you double click where it says "Contains test sources"

Upvotes: 9

Related Questions