test-utils
Documentation
Gloss & Runner for CHICKEN Scheme test egg.
(test-utils run)
Usage
(import (test-utils run))
run-tests-for
[procedure] (run-tests-for EGGNAME [TEST-NAMES [CSC-OPTIONS [CSI-OPTIONS]]])run-test-for
[procedure] (run-test-for EGGNAME [NAME [CSC-OPTIONS [CSI-OPTIONS]]])run-ident
[procedure] (run-ident [IDENT]) -> (list-of (pair symbol *))- Default run-ident:
- 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
[procedure] (runid ID [VALUE]) -> *make-test-filename
[procedure] (make-test-filename NAME) -> stringmake-test-pathname
[procedure] (make-test-pathname NAME) -> stringtest-lineup
[procedure] (test-lineup [PATHS]) -> (list-of string)test-list-order<
[procedure] (test-list-order< TEST-NAMES) -> (testname testname -> boolean)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
[procedure] (run-tests [TEST-NAMES [CSC-OPTIONS [CSI-OPTIONS]]])run-test
[procedure] (run-test [NAME [CSC-OPTIONS [CSI-OPTIONS]]])test-files-rx
[procedure] (test-files-rx [REGEXP]) -> regexpcsi-options
[procedure] (csi-options [OPTIONS]) -> (list-of string)csc-options
[procedure] (csc-options [OPTIONS]) -> (list-of string)run-test-evaluated
[procedure] (run-test-evaluated NAME OPTIONS)run-test-compiled
[procedure] (run-test-compiled NAME OPTIONS)(test-utils gloss)
Usage
(import (test-utils gloss))
gloss
[procedure] (gloss [OBJS...])test group gloss level display w/ newline.
glossf
[procedure] (glossf FMT [OBJS...])test group gloss level format w/ newline.
glossln
[procedure] (glossln)test group gloss level newline.
glossn
[procedure] (glossn [OBJS...])test group gloss level display w/o newline.
glossnf
[procedure] (glossnf FMT [OBJS...])test group gloss level format w/o newline.
test-indent-width
[procedure] (test-indent-width [WIDTH]) -> fixnumtest-first-indentation
[procedure] (test-first-indentation [INDENT]) -> fixnumtest-max-indentation
[procedure] (test-max-indentation [INDENT]) -> fixnumtest-indentation-char
[procedure] (test-indentation-char [CHAR]) -> chartest-group-level
[procedure] (test-group-level GROUP) -> fixnumtest-group-indent-width
[procedure] (test-group-indent-width GROUP) -> fixnumtest-group-indent-string
[procedure] (test-group-indent-string GROUP) -> stringExamples
; run.scm (import (test-utils run)) (run-tests-for "this-eggname")
Requirements
Author
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.