Hi Ralph,<br><br><div><span class="gmail_quote">On 5/9/07, <b class="gmail_sendername">Ralph Johnson</b> &lt;<a href="mailto:johnson@cs.uiuc.edu">johnson@cs.uiuc.edu</a>&gt; 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&#39;ve been trying to find a package in Package Universe that runs all<br>the tests, and it is very hard.&nbsp;&nbsp;I&#39;m trying to make a system that<br>makes sure that changes to the image don&#39;t break any of the packages
<br>already in Package Universe, but so far I can&#39;t find one where the<br>tests aren&#39;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&#39;t run suites if one of
<br>the tests has a syntax errors.&nbsp;&nbsp;After deleting that class, there were<br>10 failues and 30 errors in the Refactoring BrwoserTest hierarchy.</blockquote><div><br><br>This isn&#39;t going to be much help, but it is very easy to modify SUnit to catch syntax errors.&nbsp; Here&#39;s what I did:
<br><br>!TestResult methodsFor: &#39;running&#39; stamp: &#39;eem 4/3/2007 14:10&#39;!<br>runCase: aTestCase<br>&nbsp;&nbsp;&nbsp; | testCasePassed |<br>&nbsp;&nbsp;&nbsp; testCasePassed := true.<br>&nbsp;&nbsp;&nbsp; [[aTestCase runCase] <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; on: self class failure
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; do: <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [:signal | <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; failures add: aTestCase.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; testCasePassed := false.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; signal return: false]]<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; on: self class error, self class syntaxError
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; do:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [:signal |<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; errors add: aTestCase.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; testCasePassed := false.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; signal return: false].<br>
&nbsp;&nbsp;&nbsp; testCasePassed ifTrue: [passed add: aTestCase]! !<br><br><br>!TestResult class methodsFor: &#39;exceptions&#39; stamp: &#39;eem 4/3/2007 14:10&#39;!<br>syntaxError<br>&nbsp;&nbsp;&nbsp; ^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.&nbsp;&nbsp;You can run them if you are prepared to sit
<br>at the machine and press buttons.&nbsp;&nbsp;Tests should be completely<br>automatic.<br><br>I tried to just laod SmaCC.&nbsp;&nbsp;However, it won&#39;t load.&nbsp;&nbsp;It ought to<br>depend on SmaCC runtime, but doesn&#39;t.&nbsp;&nbsp;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.&nbsp;&nbsp;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.&nbsp;&nbsp;However, when I try to run<br>all the tests like &quot;TestCase suite run&quot; then the image crashes.&nbsp;&nbsp;The<br>backup font for BitstreamVeraSans 9 Roman is BitstreamVeraSans 9
<br>Roman, so TTCFont&gt;&gt;glyphInfoOn:into: got into an infinite loop.&nbsp;&nbsp;Why<br>would RoelTyper change any fonts?&nbsp;&nbsp;It seems very strange to me.<br><br>I haven&#39;t tried that many packages yet.&nbsp;&nbsp;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>