Skip to main content

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

a gololang.Test(ing) module ?

using the describe/it/should idioms or using conventions Testxxx ?

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.

+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

We could start with an embedded lib and extract it whenever we consider mature enough.


On Wed, Sep 30, 2015 at 10:44 PM Julien Ponge <julien.ponge@xxxxxxxxxxxx> wrote:
I was thinking about a module in the standard library. It would not preclude 3rd-party pluggable assertion libraries, runners/reporters, etc.

There is already some hidden constructs in some Golo tests, so extracting something simple as a standard module would be a nice touch.

And we could also have a `golo test` command, like Go does (which I find very very interesting).

- Julien

On Wed, Sep 30, 2015 at 10:34 PM Daniel Petisme <daniel.petisme@xxxxxxxxx> wrote:
What's the target ?
Build a standard lib or host it in the golo-lang project ?

IMHO, a standalone lib would be cleaner. 

On Wed, Sep 30, 2015 at 10:02 PM Julien Ponge <julien.ponge@xxxxxxxxxxxx> wrote:
The DSL is not that hard to define (describe, it, etc) the tricky part is the assertion API (in order to make something easy to extend) and the reporters (console, html, etc.).

Indeed making a harness is relatively easy, while the assertion API can be more tricky. But we could start with something simple on the assertions side. Same thing regarding reporting, at first what really matters is running test suites and reporting to the console (+ the process exit value).

- 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

Back to the top