[Top][All Lists]

[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)

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


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 

 - 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"
 (begin expr1 expr2 exp3 ...))

... instead of:

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

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





reply via email to

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