Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
/ guile-tap Public archive

Simple Guile module which provides TAP compilant output.

Notifications You must be signed in to change notification settings

xevz/guile-tap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

What?

A simple TAP implementation in (Guile) Scheme.

Why?

I wanted to experiment with Scheme a bit and unit testing with TAP is quite cool.

How?

(use-modules (guile-tap))

(planned-tests 3)

(ok (= 1 1))
(ok (not (null? '(21))))

(diagnostic "Skip some tests...")
(skip #t
  (list
    '(ok (= 1 1))
    '(ok (not (= 1 2))))
  ; Optional reason
  "A reason")

(diagnostic "Bail out...")
(bail-out!)

(diagnostic "Todo is supported as well...")
(todo
  (list
    '(ok (= 1 1)))
    ; Optional note
  "A note")

(ok (throws? (/ 1 0)) "Test for exception")

About

Simple Guile module which provides TAP compilant output.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages