Use define-runtime-path for the rackunit screenshot.

This commit is contained in:
Georges Dupéron 2017-05-22 04:18:13 +02:00
parent 71c164e9f0
commit 25163f81ef

View File

@ -38,6 +38,8 @@ information.
RackUnit also provides a GUI test runner, available from the
@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?)] ...
[#:wait? wait? boolean? #f])
void?]{
@ -66,7 +68,7 @@ the test runner window has been closed.
(test-case "append" (check-equal? (string-append "a" "b") "ab"))
(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
cases as leaves) on the left pane, and information about the selected test
failure in the right pane.}