unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* [ANN] ggspec v1.0 released - a unit testing framework
@ 2014-02-09 18:46 Yawar Amin
  2014-02-10 21:52 ` Jan Wedekind
  0 siblings, 1 reply; 4+ messages in thread
From: Yawar Amin @ 2014-02-09 18:46 UTC (permalink / raw)
  To: guile-user

[-- Attachment #1: Type: text/plain, Size: 1363 bytes --]

Hi folks,

I've just polished up and released ggspec v1.0.[1] Ggspec is a unit testing framework targeting Guile 1.8.8, with Guile 2 support in the planning stage. Excerpt from the release notes:

  - The `ggspec` script is a test runner that will find and run all tests in your project's `spec` subdirectory (recursively).

  - Test results (pass or fail) and details (if fail) are output _as soon as they are known._ This means before the next test is run. So you get immediate feedback.

  - All setups (i.e. definitions) are re-run before _every_ test, and so are all teardowns. This means that all setup values used in tests are completely isolated from each other and every test runs in a clean environment. Modulo, of course, you or some implicitly-run Scheme procedure changing global or thread-local state.

  - **Warning** that the `test` macro API will change slightly, soon. You should be future-proof if you restrict the test body to a single expression. Use `begin` if you need to. E.g., use:

...
(test "Description"
  e
  (begin expr1 expr2 exp3 ...))
...

... instead of:

...
(test "Description"
  e
  expr1 expr2 exp3 ...)
...

Tutorial is on the repo home page.[2] I'd welcome feedback.

Regards,

Yawar

[1] https://github.com/yawaramin/ggspec/releases/tag/v1.0

[2] https://github.com/yawaramin/ggspec



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 899 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ANN] ggspec v1.0 released - a unit testing framework
  2014-02-09 18:46 [ANN] ggspec v1.0 released - a unit testing framework Yawar Amin
@ 2014-02-10 21:52 ` Jan Wedekind
  2014-02-11  2:53   ` Yawar Amin
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Wedekind @ 2014-02-10 21:52 UTC (permalink / raw)
  To: Yawar Amin; +Cc: guile-user

Hi,
Maybe you might be interested in making the output TAP compatible [3]? 
Automake 1.14 supports TAP testing. I am using Guile-TAP [4] at the moment [5].

Regards Jan

[3] https://en.wikipedia.org/wiki/Test_Anything_Protocol
[4] https://github.com/xevz/guile-tap/
[5] https://github.com/wedesoft/aiscm/

On Sun, 9 Feb 2014, Yawar Amin wrote:

> Hi folks,
>
> I've just polished up and released ggspec v1.0.[1] Ggspec is a unit testing framework targeting Guile 1.8.8, with Guile 2 support in the planning stage. Excerpt from the release notes:
>
>  - The `ggspec` script is a test runner that will find and run all tests in your project's `spec` subdirectory (recursively).
>
>  - Test results (pass or fail) and details (if fail) are output _as soon as they are known._ This means before the next test is run. So you get immediate feedback.
>
>  - All setups (i.e. definitions) are re-run before _every_ test, and so are all teardowns. This means that all setup values used in tests are completely isolated from each other and every test runs in a clean environment. Modulo, of course, you or some implicitly-run Scheme procedure changing global or thread-local state.
>
>  - **Warning** that the `test` macro API will change slightly, soon. You should be future-proof if you restrict the test body to a single expression. Use `begin` if you need to. E.g., use:
>
> ...
> (test "Description"
>  e
>  (begin expr1 expr2 exp3 ...))
> ...
>
> ... instead of:
>
> ...
> (test "Description"
>  e
>  expr1 expr2 exp3 ...)
> ...
>
> Tutorial is on the repo home page.[2] I'd welcome feedback.
>
> Regards,
>
> Yawar
>
> [1] https://github.com/yawaramin/ggspec/releases/tag/v1.0
>
> [2] https://github.com/yawaramin/ggspec
>
>
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ANN] ggspec v1.0 released - a unit testing framework
  2014-02-10 21:52 ` Jan Wedekind
@ 2014-02-11  2:53   ` Yawar Amin
  2014-02-11 13:24     ` Jan Wedekind
  0 siblings, 1 reply; 4+ messages in thread
From: Yawar Amin @ 2014-02-11  2:53 UTC (permalink / raw)
  To: Jan Wedekind; +Cc: guile-user

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

Hello Jan,

On 2014-02-10 16:52, Jan Wedekind wrote:
> Hi,
> Maybe you might be interested in making the output TAP compatible [3]? Automake 1.14 supports TAP testing. I am using Guile-TAP [4] at the moment [5].
>
> Regards Jan
>
> [3] https://en.wikipedia.org/wiki/Test_Anything_Protocol
> [4] https://github.com/xevz/guile-tap/
> [5] https://github.com/wedesoft/aiscm/

TAP has been on my radar recently.[6] But I have to admit I didn't look at it very seriously ... until now--now that you mention Automake.

I'm about 95% sure I can write an output formatter for ggspec that formats to TAP. But before that I need to clean up the internals a bit. I've made a plan [7] and am going to implement it--stay tuned....

Regards,

Yawar

[6] http://stackoverflow.com/q/72057/20371
[7] https://github.com/yawaramin/ggspec/commit/0d812c5e6c1e3343ab0a820058e07c7771e24249



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 899 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ANN] ggspec v1.0 released - a unit testing framework
  2014-02-11  2:53   ` Yawar Amin
@ 2014-02-11 13:24     ` Jan Wedekind
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Wedekind @ 2014-02-11 13:24 UTC (permalink / raw)
  To: Yawar Amin; +Cc: guile-user

Hi Yawar,
Cool, hopefully the Automake TAP support will be helpful. I've created an 
example project which might save you some time [8]. Note that you do need 
a recent version of the Autotools.

Regards Jan

[8] https://github.com/wedesoft/automake-tap/releases

On Mon, 10 Feb 2014, Yawar Amin wrote:

> Hello Jan,
>
> On 2014-02-10 16:52, Jan Wedekind wrote:
>> Hi, Maybe you might be interested in making the output TAP compatible 
>> [3]? Automake 1.14 supports TAP testing. I am using Guile-TAP [4] at 
>> the moment [5].
>>
>> Regards Jan
>>
>> [3] https://en.wikipedia.org/wiki/Test_Anything_Protocol
>> [4] https://github.com/xevz/guile-tap/
>> [5] https://github.com/wedesoft/aiscm/
>
> TAP has been on my radar recently.[6] But I have to admit I didn't look 
> at it very seriously ... until now--now that you mention Automake.
>
> I'm about 95% sure I can write an output formatter for ggspec that 
> formats to TAP. But before that I need to clean up the internals a bit. 
> I've made a plan [7] and am going to implement it--stay tuned....
>
> Regards,
>
> Yawar
>
> [6] http://stackoverflow.com/q/72057/20371
> [7] https://github.com/yawaramin/ggspec/commit/0d812c5e6c1e3343ab0a820058e07c7771e24249
>
>
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-11 13:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-09 18:46 [ANN] ggspec v1.0 released - a unit testing framework Yawar Amin
2014-02-10 21:52 ` Jan Wedekind
2014-02-11  2:53   ` Yawar Amin
2014-02-11 13:24     ` Jan Wedekind

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).