Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run-tests: checks nested inside define-checks do not report failures #161

Open
Bogdanp opened this issue Dec 3, 2022 · 0 comments
Open

Comments

@Bogdanp
Copy link
Sponsor

Bogdanp commented Dec 3, 2022

This may just be another instance of #98 (in which case, feel free to close it in its favor), but I was surprised to find out that the following program reports no failures despite displaying an error:

#lang racket/base

(require rackunit
         rackunit/text-ui)

(define-check (check-example a b)
  (check-equal? a b))

(define suite
  (test-suite
   "example"

   (check-example 1 2)))

(run-tests suite)
$ raco test example.rkt
raco test: "/Users/bogdan/tmp/example.rkt"
--------------------
example > Unnamed test
FAILURE
name:       check-example
location:   example.rkt:13:3
actual:     1
expected:   2
--------------------
1 success(es) 0 failure(s) 0 error(s) 1 test(s) run
0
1 test passed
Bogdanp added a commit to Bogdanp/racket-avro that referenced this issue Dec 3, 2022
Bogdanp added a commit to Bogdanp/deta that referenced this issue May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant