Running Unit Tests Individually From Eclipse

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Nov 15 2005 - 08:24:00 EST

  • Next message: Andrus Adamchik: "Prefetching Feedback"

    FYI:

    Until now it was a real pain to run unit tests that extend
    CayenneTestCase from Eclipse (i.e. those that load a test schema and
    need access to resources). And often running a test in debugger is
    the only way to figure out why it is failing.

    Our recent project structure reshuffle and commit below make it
    possible to run any class from the test suite with Eclipse. Just
    right click on a test class, select "Run As" -> "JUnit Test".

    Andrus

    Begin forwarded message:
    > From: Andrus Adamchik <mens..sers.sourceforge.net>
    > Date: November 15, 2005 4:17:18 PM GMT+03:00
    > To: cayenne-cv..bjectstyle.org
    > Subject: cayenne/cayenne-java .classpath,1.3,1.4
    >
    >
    > Update of /cvsroot/cayenne/cayenne/cayenne-java
    > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1693
    >
    > Modified Files:
    > .classpath
    > Log Message:
    > fixing .classpath to allow unit tests to be run from Eclipse
    >
    > Index: .classpath
    > ===================================================================
    > RCS file: /cvsroot/cayenne/cayenne/cayenne-java/.classpath,v
    > retrieving revision 1.3
    > retrieving revision 1.4
    > diff -u -d -r1.3 -r1.4
    > --- .classpath 9 Nov 2005 10:54:31 -0000 1.3
    > +++ .classpath 15 Nov 2005 13:17:15 -0000 1.4
    >.. -42,5 +42,6 @@
    > <classpathentry exported="true" kind="lib" path="lib/velocity-
    > dep-1.3.jar"/>
    > <classpathentry kind="con"
    > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    > <classpathentry sourcepath="lib-src/postgresql-jdbc-
    > src-8.0-314.jar" kind="lib" path="lib/postgresql-8.0-314.jdbc3.jar"/>
    > + <classpathentry kind="lib" path="src/tests/resources"/>
    > <classpathentry kind="output" path="build/eclipse"/>
    > </classpath>
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Nov 15 2005 - 08:24:04 EST