racket / rackunit

Other
18 stars 34 forks source link

Hierarchy of reported test failure is out of order #170

Closed countvajhula closed 6 months ago

countvajhula commented 10 months ago

When a test fails, we get a message resembling:

crossover > routing forms > flow tests > a test that should fail
FAILURE
name:       check-equal?
location:   qi-test/tests/flow.rkt:528:5
actual:     "ba"
expected:   #f

The actual hierarchy of test suites in this case is

(test-suite "flow" ...
  (test-suite "routing forms" ...
    (test-suite "crossover" ...
      (test-equal? "a test that should fail" ...))))

That is, the expected hierarchy at the top of the message is:

flow tests > routing forms > crossover > a test that should fail