Hi Ralph,<br><br><div><span class="gmail_quote">On 5/9/07, <b class="gmail_sendername">Ralph Johnson</b> <<a href="mailto:johnson@cs.uiuc.edu">johnson@cs.uiuc.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've been trying to find a package in Package Universe that runs all<br>the tests, and it is very hard. I'm trying to make a system that<br>makes sure that changes to the image don't break any of the packages
<br>already in Package Universe, but so far I can't find one where the<br>tests aren't already broken.<br><br>When I run the tests on squeak-dev, I get a syntax error on<br>ChildrenToSiblingTest<br>Syntax errors stop the test runner, so you can't run suites if one of
<br>the tests has a syntax errors. After deleting that class, there were<br>10 failues and 30 errors in the Refactoring BrwoserTest hierarchy.</blockquote><div><br><br>This isn't going to be much help, but it is very easy to modify SUnit to catch syntax errors. Here's what I did:
<br><br>!TestResult methodsFor: 'running' stamp: 'eem 4/3/2007 14:10'!<br>runCase: aTestCase<br> | testCasePassed |<br> testCasePassed := true.<br> [[aTestCase runCase] <br> on: self class failure
<br> do: <br> [:signal | <br> failures add: aTestCase.<br> testCasePassed := false.<br> signal return: false]]<br> on: self class error, self class syntaxError
<br> do:<br> [:signal |<br> errors add: aTestCase.<br> testCasePassed := false.<br> signal return: false].<br>
testCasePassed ifTrue: [passed add: aTestCase]! !<br><br><br>!TestResult class methodsFor: 'exceptions' stamp: 'eem 4/3/2007 14:10'!<br>syntaxError<br> ^SyntaxErrorNotification! !<br><br>HTH<br></div>
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Lots of tests pop up a user interface, making them impossible to run<br>completely automatically. You can run them if you are prepared to sit
<br>at the machine and press buttons. Tests should be completely<br>automatic.<br><br>I tried to just laod SmaCC. However, it won't load. It ought to<br>depend on SmaCC runtime, but doesn't. Instead, it depends on a bunch
<br>of other things, such as the refactoring browser, which has the<br>problems mentioned for squeak-dev.<br><br>I decided to just load RoelTyper. I could run all the tests in the<br>TestRunner, there was just one or two extra failures, which I thought
<br>was pretty good, all things considering. However, when I try to run<br>all the tests like "TestCase suite run" then the image crashes. The<br>backup font for BitstreamVeraSans 9 Roman is BitstreamVeraSans 9
<br>Roman, so TTCFont>>glyphInfoOn:into: got into an infinite loop. Why<br>would RoelTyper change any fonts? It seems very strange to me.<br><br>I haven't tried that many packages yet. Surely one of them will work!
<br><br>-Ralph<br>_______________________________________________<br>V3dot10 mailing list<br><a href="mailto:V3dot10@lists.squeakfoundation.org">V3dot10@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/v3dot10">
http://lists.squeakfoundation.org/mailman/listinfo/v3dot10</a><br></blockquote></div><br>