Compare commits

...

1 Commits

Author SHA1 Message Date
Georges Dupéron
25163f81ef Use define-runtime-path for the rackunit screenshot. 2017-05-22 04:18:13 +02:00

View File

@ -38,6 +38,8 @@ information.
RackUnit also provides a GUI test runner, available from the RackUnit also provides a GUI test runner, available from the
@racketmodname[rackunit/gui] module. @racketmodname[rackunit/gui] module.
@define-runtime-path[scribblings/rackunit-screen-shot.png
"scribblings/rackunit-screen-shot.png"]
@defproc[(test/gui [test (or/c test-case? test-suite?)] ... @defproc[(test/gui [test (or/c test-case? test-suite?)] ...
[#:wait? wait? boolean? #f]) [#:wait? wait? boolean? #f])
void?]{ void?]{
@ -66,7 +68,7 @@ the test runner window has been closed.
(test-case "append" (check-equal? (string-append "a" "b") "ab")) (test-case "append" (check-equal? (string-append "a" "b") "ab"))
(test-case "ref" (check-equal? (string-ref "abc" 1) #\b)))))] (test-case "ref" (check-equal? (string-ref "abc" 1) #\b)))))]
@image["scribblings/rackunit-screen-shot.png"]{Screenshot of the RackUnit @image[scribblings/rackunit-screen-shot.png]{Screenshot of the RackUnit
window. It features a tree representing the nested test suites (with test window. It features a tree representing the nested test suites (with test
cases as leaves) on the left pane, and information about the selected test cases as leaves) on the left pane, and information about the selected test
failure in the right pane.} failure in the right pane.}