On 7/26/06, Andrus Adamchik <andru..bjectstyle.org> wrote:
> Cool. Could you provide some details on what needs to be preserved
> and how to handle it via Maven?
I can provide details, but don't know anything about configuring
Maven. I've heard that Maven can run ant tasks, so maybe it's easy.
In src/regression/java,
org.objectstyle.cayenne.regression.AntFileSetCompareTask
In src/tests/resources,
test-resources/ClassGeneration
In the regression.xml file,
All of the properties? (not sure about the ones used in the classpath).
The "testrun.classgeneration" directory can be changed to anywhere.
The agnostic-classpath path.
targets:
testTemplating
compile
check-connection and friends might need to be to be added to the
testTemplating dependency list after compile if the script is changed
by removing testRandomDomainBuilderAndDataModificationRobot. Not
sure really on this. I'm not sure if the embedded database connection
is used for the template testing -- I don't think it is, but the
classpath path id doesn't appear to be defined unless this target is
called.
So you'd need these targets.
use-specified-connection
use-embedded-hsqldb
check-connection
> On Jul 26, 2006, at 1:02 PM, Mike Kienenberger wrote:
>
> > They're definitely integration tests, not unit tests. They basically
> > compare an expected generated output against the output from running
> > the cgen ant task.
> >
> > On 7/26/06, Andrus Adamchik <andru..bjectstyle.org> wrote:
> >>
> >> On Jul 26, 2006, at 12:52 PM, Mike Kienenberger wrote:
> >>
> >> >> On Jul 26, 2006, at 8:07 AM, Bill Dudney wrote:
> >> >> > main/cayenne/cayenne-java/src/regression - to be moved to their
> >> >> > respective projects?
> >> >
> >> > On 7/26/06, Andrus Adamchik <andru..bjectstyle.org> wrote:
> >> >> I would kill this module all together if there are no objections.
> >>
> >>
> >> > The rest of it is probably garbage, though.
> >>
> >> Not that it's garbage, it is just that we don't use it for a number
> >> of years. For the purpose of Maven migration it is all the same
> >> though, besides the copy of it exists on 1.2 (and other) branches, so
> >> it can be safely removed from HEAD.
> >>
> >>
> >> > There are some cgen regression tests that we should keep.
> >>
> >> Where to you think we can put those in maven? Treat them as unit
> >> tests or integration tests?
> >>
> >> Andrus
> >>
> >
>
>
This archive was generated by hypermail 2.0.0 : Wed Jul 26 2006 - 13:36:43 EDT