Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [golo-dev] A testing module?

1- the function args.
To be rigourous we should pass in the argument list,
- it/ xit (Jasmine proposes the `x` prefix to disable a suite/test)
- before/after
- beforeAll, afterAll

2- No way to embed a test suite in another suite (maybe could be consider as a bad-pattern of testing ?

A proposal

@spec
function foo = |api| {
  api: describe("", {
    api: it("")
  })


On Mon, Oct 19, 2015 at 8:59 AM Julien Ponge <julien.ponge@xxxxxxxxxxxx> wrote:
Maybe something like:

@describe
function foo = |it| {
  it("should add 1 and 2", {
    require(1 + 2 == 3)
  })
}

etc. Just an idea, really.

On Fri, Oct 16, 2015 at 6:58 PM Daniel Petisme <daniel.petisme@xxxxxxxxx> wrote:

Not sure to understand, can you share a snippet illustrating your idea please.

Le 16 oct. 2015 18:55, "Julien Ponge" <julien.ponge@xxxxxxxxxxxx> a écrit :
Hi Daniel,

Proposal 2 looks like a good basis to me.

Perhaps you could make it more appealing with a @describe decorator on test functions rather than naming 1 function define.

Since there is a decorator involved, what would Yannick think? :-)

Cheers
On Thu, 15 Oct 2015 at 20:24, Daniel Petisme <daniel.petisme@xxxxxxxxx> wrote:

On Thu, Oct 1, 2015 at 7:15 AM Yannick Loiseau <me@xxxxxxxxxxxx> wrote:

I also experimented with this issue...
https://gist.github.com/yloiseau/7212fc97a23155a444c5

more like xUnit, less bdd-DSLish than describe/it


Philippe Charrière (2015-10-01 01:03):
> https://github.com/k33g/malossol
>
>
> On Wed, Sep 30, 2015 at 10:59 PM, Julien Ponge <julien.ponge@xxxxxxxxxxxx>
> wrote:
>
> >
> > a gololang.Test(ing) module ?
> >>
> >
> > Yes
> >
> >
> >> using the describe/it/should idioms or using conventions Testxxx ?
> >>
> >
> > describe/it like in mocha, bdd-style libs, etc is very readable.
> >
> > what bothers me including the test module in the stdlib is the
> >> life-cycle.... We will have to wait a release to publish a new test feature
> >> and most of the time a lang release doesn't impact the test lib.
> >>
> >
> > I'm not convinced it's an issue :-)
> >
> >
> >> +1 for the golo test command but I would rather permit users to add
> >> commands to the golo CLI, I don't know how yet.... :D
> >>
> >
> > Plain old SPI services, Romain Lespinasse did it just right.
> >
> > - Julien
> >
> > _______________________________________________
> > golo-dev mailing list
> > golo-dev@xxxxxxxxxxx
> > To change your delivery options, retrieve your password, or unsubscribe
> > from this list, visit
> > https://dev.eclipse.org/mailman/listinfo/golo-dev
> >
> >

> _______________________________________________
> golo-dev mailing list
> golo-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/golo-dev

_______________________________________________
golo-dev mailing list
golo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/golo-dev
_______________________________________________
golo-dev mailing list
golo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/golo-dev

_______________________________________________
golo-dev mailing list
golo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/golo-dev

_______________________________________________
golo-dev mailing list
golo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/golo-dev
_______________________________________________
golo-dev mailing list
golo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/golo-dev

Back to the top