Skip to content

An experimental Racket library that adds test fixtures to RackUnit

License

Notifications You must be signed in to change notification settings

jackfirth/racket-fixture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

racket-fixture Build Status codecov

An experimental Racket library providing test fixtures, resources that are automatically created and destroyed for each RackUnit test case.

(define-fixture tmpdir (disposable-directory))
(define-fixture tmpfile (disposable-file))

(test-case/fixture "tests"
  #:fixture tmpdir
  #:fixture tmpfile
  (test-case "some-test"
    ... use tmpdir and tmpfile ...)
  (test-case "other-test"
    ... use different tmpdir and tmpfile ...))

This package depends on RackUnit version 1.8, which has not yet been released in the main distribution. The 6.11 Racket release will include it; you can also manually upgrade your installation of RackUnit.

Available from the Racket package catalog. To install:

raco pkg install fixture

About

An experimental Racket library that adds test fixtures to RackUnit

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages