chickadee » test-utils

test-utils

Documentation

Gloss & Runner for CHICKEN Scheme test egg.

(test-utils run)

Usage

(import (test-utils run))

run-tests-for

run-tests-for EGGNAME #!optional TEST-NAMES CSC-OPTIONS CSI-OPTIONSprocedure

run-test-for

run-test-for EGGNAME #!optional NAME CSC-OPTIONS CSI-OPTIONSprocedure

run-ident

run-ident #!optional IDENTprocedure
test-directory
string ; "."
test-extension
string ; "scm"
csi-options
(list-of string) ; ()
csi-excl-options
(list-of string) ; ()
csc-options
(list-of string) ; ()
csc-excl-options
(list-of string) ; ()
test-excl-names
(list-of string) ; ()
test-order
(string string -> boolean) ; string>?
EGG-NAME
string ; egg name

runid

runid ID #!optional VALUEprocedure

make-test-filename

make-test-filename NAMEprocedure

make-test-pathname

make-test-pathname NAMEprocedure

test-lineup

test-lineup #!optional PATHSprocedure

test-list-order<

test-list-order< TEST-NAMESprocedure

Given an explicit ordering for the tests return a less-than procedure which enforces the order.

TEST-NAMES
(list-of testname)
testname
string

run-tests

run-tests #!optional TEST-NAMES CSC-OPTIONS CSI-OPTIONSprocedure

run-test

run-test #!optional NAME CSC-OPTIONS CSI-OPTIONSprocedure

test-files-rx

test-files-rx #!optional REGEXPprocedure

csi-options

csi-options #!optional OPTIONSprocedure

csc-options

csc-options #!optional OPTIONSprocedure

run-test-evaluated

run-test-evaluated NAME OPTIONSprocedure

run-test-compiled

run-test-compiled NAME OPTIONSprocedure

(test-utils gloss)

Usage

(import (test-utils gloss))

gloss

gloss #!optional OBJS...procedure

test group gloss level display w/ newline.

glossf

glossf FMT #!optional OBJS...procedure

test group gloss level format w/ newline.

glossln

glosslnprocedure

test group gloss level newline.

glossn

glossn #!optional OBJS...procedure

test group gloss level display w/o newline.

glossnf

glossnf FMT #!optional OBJS...procedure

test group gloss level format w/o newline.

test-indent-width

test-indent-width #!optional WIDTHprocedure

test-first-indentation

test-first-indentation #!optional INDENTprocedure

test-max-indentation

test-max-indentation #!optional INDENTprocedure

test-indentation-char

test-indentation-char #!optional CHARprocedure

test-group-level

test-group-level GROUPprocedure

test-group-indent-width

test-group-indent-width GROUPprocedure

test-group-indent-string

test-group-indent-string GROUPprocedure

Examples

; run.scm
(import (test-utils run))
(run-tests-for "this-eggname")

Requirements

test

Author

Kon Lovett

Repository

This egg is hosted on the CHICKEN Subversion repository:

https://anonymous@code.call-cc.org/svn/chicken-eggs/release/5/test-utils

If you want to check out the source code repository of this egg and you are not familiar with Subversion, see this page.

Version history

1.2.1
Validate run-ident argument.
1.2.0
Deprecate *...* runid names.
1.1.0
Fix signatures, Add test-list-order<.
1.0.0
Initial release.

License

Copyright (C) 2023-2024 Kon Lovett. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ASIS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contents »