Re: Cayenne performance testing

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Feb 01 2006 - 17:31:48 EST

  • Next message: Andrus Adamchik: "Re: Cayenne performance testing"

    On Feb 1, 2006, at 4:55 PM, Andrus Adamchik wrote:
    > however it doesn't buy us anything as far as performance testing
    > is concerned.

    As usual I was talking to myself :-) What I meant is that JUnit can
    also provide timing info. Here is how XML output of our tests looks
    like:

    <testcase
    classname="org.objectstyle.cayenne.access.ClientServerChannelQueryTst" n
    ame="testSelectQueryEntityNameRoot" time="0.031"></testcase>
       <testcase
    classname="org.objectstyle.cayenne.access.ClientServerChannelQueryTst" n
    ame="testSelectQueryClientClassRoot" time="0.016"></testcase>

    On Feb 1, 2006, at 4:45 PM, Kevin Menard wrote:

    > I was actually just thinking earlier today that Cayenne might
    > benefit from
    > using TestNG. This thought came about when I saw Andrus comment
    > out some
    > test cases that were currently failing. With TestNG, you can just
    > mark a
    > test as skippable and then at least in your output, you know the
    > test was
    > skipped for whatever reason.

    The ability to exclude certain tests conditionally is essential in
    Cayenne testing, as some databases do not support certain features
    (e.g. stored procedures). Right now we are using explicit conditions
    in such test cases (conditions are configured via DB-specific
    AccessStackAdapter subclasses). It works fine, but I wouldn't mind a
    cleaner solution, although I am not sure how this can be pulled off
    with annotations.

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Feb 01 2006 - 17:31:51 EST