Hi Alex, It is a bit confusing. There's a lot of history to the message.
It used to be that rackunit only had the test-suites, test-cases, and the checks. It tries very hard to NOT count the checks as "tests". Later, the checks were exposed so you didn't have to but them in test-suites and test-cases, which always felt like painful boilerplate to me. Because of that history, the 3 successes message comes from "raco test" which tracks how many "tests" were run. Since rackunit tries to hide the checks, there's only the three test cases you wrote. The second message about checks comes from rackunit which does it own counting of checks. My advice is to totally ignore the test-suite/test-case system of rackunit and just write check-* forms in your (module+ test ...) module. Jay On Thu, Mar 2, 2017 at 10:34 PM, Alex Harsanyi <alexharsa...@gmail.com> wrote: > On Friday, March 3, 2017 at 7:18:27 AM UTC+8, schuster wrote: >> The problem is that a test-case expression runs a test immediately; it does >> not return a test object to be run later. In your case, the test runs while >> my-test-case is being defined, then no test at all actually runs >> (my-test-case is just #<void>). > > I did figure out that I need to wrap test-cases in test-suites soon after I > posted the message, as it is usually the case :-). Thanks for clarifying > that test-case runs immediately. In my case, the tests are in a separate file > and I only run the file when I want to run the tests, so it is hard to tell > the difference. > > I still think the output from "rack test" is somewhat confusing. In one of > my test files the output is: > > raco test: (submod "test/df-test.rkt" test) > 3 success(es) 0 failure(s) 0 error(s) 3 test(s) run > 0 > 75 tests passed > > What the above means is that 3 test suites were run and there were 75 checks > in total (not sure what the line with the single 0 means). However, the way > the message is printed out implies that 3 tests were run and 75 passed. > Perhaps the message could be updated to say: > > > raco test: (submod "test/df-test.rkt" test) > 3 success(es) 0 failure(s) 0 error(s) 3 test suite(s) run > 0 > 75 checks passed > > Best Regards, > Alex. > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- -=[ Jay McCarthy http://jeapostrophe.github.io ]=- -=[ Associate Professor PLT @ CS @ UMass Lowell ]=- -=[ Moses 1:33: And worlds without number have I created; ]=- -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.