Sammy
Sammy

Reputation: 1218

Use other projects classpath for testing in eclipse

Is there a way to configure an eclipse-java-project that way, that it uses the same class-path-configuration than an other project.

This project will contain test-classes that should work in the same environment than the 'original'.

Upvotes: 0

Views: 52

Answers (1)

Konstantin Komissarchik
Konstantin Komissarchik

Reputation: 29139

Make your test project depend on your product project. Then in the product project's build path properties page, make sure that all build path entries are exported. This will make them visible to the test project.

Upvotes: 1

Related Questions