Reputation: 508
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.
However, one a coworker's computer it shows as a source package. How do I assign/update this value?
Upvotes: 4
Views: 5641
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