Also, to run all the tests, I use the Ant tasks in build.xml.  Selecting a
package and trying to run all tests in Eclipse has trouble in some cases
because of the customized classpaths needed.  It is possible to build a
test that runs in Eclipse but fails in the build because Eclipse puts more
stuff on the classpath by default than the build does.  In particular,
referencing OOXML classes in a common test package can pass in Eclipse, but
will fail at build time and when run via Ant.

On Wed, Oct 18, 2017 at 11:22 AM Nick Burch <[email protected]> wrote:

> On Wed, 18 Oct 2017, Blake Watson wrote:
> > Related: I downloaded Eclipse and POI to build a test case, but I'm kind
> > of at a loss. I haven't been able to run the tests from Eclipse.
>
> The steps ought to be:
>   * Ensure you're on a version of Eclipse that supports Java 8
>   * Checkout from svn / git
>   * On the command line, do "ant compile" to have dependencies fetched
>   * In Eclipse, do Import -> General -> Existing Project into Workspace
>   * Point it at your checkout
>   * Wait for the build to finish
>   * Right click on a unit test and do Run As -> JUnit Test
>
> Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to