Sounds interesting Matt. While Lee's point is well taken, we do have
different projects (at least yet). Creating several independent test
On Jul 2, 5:47 am, Matt Wynne <
m...@mattwynne.net> wrote:
> On 2 Jul 2009, at 10:19, Lee Hambley wrote:
>
>
>
> > Arnon,
>
> > The obvious answer is small, frequent commits to keep your
> > developers informed, you should maybe think of writing your tests to
> > look more like:
>
> > When I run the "Paperclip Sync" Job
> > When I run the "Database Backup" Job
>
> > And keep those implementations as similar as possible, if you need
> > some more logic in side that step definition, you may be able to
> > make that work, YMMV, and I don't recommend making overly
> > complicated test step implementations (don't wanna have to test your
> > tests!)
>
> > The alternative is to come up with some standards for writing the
> > test language, simple things like being clear about "a" versus "the"
> > in our project `a thing` looks for "class="thing"" and `the thing`
> > looks for "id="thing"" - such things should allow you to reuse most
> > of your step defs.
>
> I guess you could also consider keeping the test suites in separate
> folders, so that the "When I run the job" step is defined once per
> folder. You can keep the common step definitions in another folder and
> require that from the sub-folders.
>
>
>
> > - Lee
>