guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ANN] ggspec v1.0 released - a unit testing framework


From: Jan Wedekind
Subject: Re: [ANN] ggspec v1.0 released - a unit testing framework
Date: Mon, 10 Feb 2014 21:52:55 +0000 (GMT)
User-agent: Alpine 2.02 (DEB 1266 2009-07-14)

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]