[racket] [rackunit] analyzing results of a test-suite

From: Chris (c.bowdon at gmail.com)
Date: Wed Sep 21 03:29:48 EDT 2011

I'm struggling to get to grips with the API: how do you extract the details of the failed test-cases from their test-suite? 

At the moment I have a shadow module of test-cases for each actual module. I'm trying to unify these so that one procedure will run all the tests and bring back details of any failures. 

My first approach hasn't worked very well. I wrapped each module's test-cases in a define/provide-test-suite and imported these into a main testing module with a single suite containing all these test-suites. However if I (run-test all-test-suites) then I just get a list of anonymous "test-success/test-failure/test-error"s. There must be a better way? (I suppose I could just leave all the test-cases as they are and let them run as they are imported. This would give pretty much the right output, but it doesn't seem very neat to me.)

Best regards,
Chris 


Posted on the users mailing list.