[Top][All Lists]

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

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

From: Yawar Amin
Subject: [ANN] ggspec v1.0 released - a unit testing framework
Date: Sun, 09 Feb 2014 13:46:54 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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.





Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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