You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yetus.apache.org by Casey Brotherton <cb...@cloudera.com> on 2016/09/20 20:14:51 UTC

[DISCUSS] Yetus Unit Tests

Hello,

I was thinking about yetus unit tests, and saw YETUS-15 with some code
utilizing bats for a unit test.

In addition, it seems that there is an opportunity to perform an end to end
unit tests.

A possible workflow:
1)  Create a git repository using text patch files.
2)  Start a webserver to provide mock Jira pages, and mock patch files.
3)  Use test-patch to parse the jira page, pull the patch, and perform the
git modifications.

I have attached a rough file to YETUS-15 as an idea for discussion.
( It certainly isn't complete, but meant as a starting idea )

Thanks,
Casey
-- 
Casey J. Brotherton
Customer Operations Engineer
[image: www.cloudera.com] <http://www.cloudera.com>

Re: [DISCUSS] Yetus Unit Tests

Posted by Andrew Wang <an...@cloudera.com>.
This is something I'd be interested in for RDM, since right now I'm testing
against the actual apache.org JIRA instance.

On Thu, Sep 22, 2016 at 1:09 PM, Sean Busbey <bu...@apache.org> wrote:

> This is a neat idea. I'm hoping to find time to play with the
> discussion patch enough this weekend to contribute meaningfully to the
> discussion early next week.
>
> On Tue, Sep 20, 2016 at 1:14 PM, Casey Brotherton
> <cb...@cloudera.com> wrote:
> > Hello,
> >
> > I was thinking about yetus unit tests, and saw YETUS-15 with some code
> > utilizing bats for a unit test.
> >
> > In addition, it seems that there is an opportunity to perform an end to
> end
> > unit tests.
> >
> > A possible workflow:
> > 1)  Create a git repository using text patch files.
> > 2)  Start a webserver to provide mock Jira pages, and mock patch files.
> > 3)  Use test-patch to parse the jira page, pull the patch, and perform
> the
> > git modifications.
> >
> > I have attached a rough file to YETUS-15 as an idea for discussion.
> > ( It certainly isn't complete, but meant as a starting idea )
> >
> > Thanks,
> > Casey
> > --
> > Casey J. Brotherton
> > Customer Operations Engineer
> > [image: www.cloudera.com] <http://www.cloudera.com>
>

Re: [DISCUSS] Yetus Unit Tests

Posted by Sean Busbey <bu...@apache.org>.
This is a neat idea. I'm hoping to find time to play with the
discussion patch enough this weekend to contribute meaningfully to the
discussion early next week.

On Tue, Sep 20, 2016 at 1:14 PM, Casey Brotherton
<cb...@cloudera.com> wrote:
> Hello,
>
> I was thinking about yetus unit tests, and saw YETUS-15 with some code
> utilizing bats for a unit test.
>
> In addition, it seems that there is an opportunity to perform an end to end
> unit tests.
>
> A possible workflow:
> 1)  Create a git repository using text patch files.
> 2)  Start a webserver to provide mock Jira pages, and mock patch files.
> 3)  Use test-patch to parse the jira page, pull the patch, and perform the
> git modifications.
>
> I have attached a rough file to YETUS-15 as an idea for discussion.
> ( It certainly isn't complete, but meant as a starting idea )
>
> Thanks,
> Casey
> --
> Casey J. Brotherton
> Customer Operations Engineer
> [image: www.cloudera.com] <http://www.cloudera.com>