<div dir="ltr">Hi,<br><br>I&#39;ve started to work on a ContinuousIntegration package to periodically generate test reports for images provided by Damien Cassou (and more ?). You can find more info here: <a title="static project url" href="http://www.squeaksource.com/ContIntegration.html">http://www.squeaksource.com/ContIntegration.html</a><br>
To run all tests and generate a xml report per test case, type<br><br>CITestRunner runAllTests.<br><br>I&#39;ve also made a bash script (squeakci) to run all the tests. It could later be run in a cron job for example: <a href="http://adhocmusic.org/squeak/squeakci">http://adhocmusic.org/squeak/squeakci</a> <br>
<br>Here is a (basic) first report: <br><a href="http://adhocmusic.org/squeak/squeak_test_report.html">http://adhocmusic.org/squeak/squeak_test_report.html</a><br><br>It is not complete, as I have encountered some problems:<br>
<br>1. some code run by the tests have syntax errors. (for example: ChildrenToSiblingsTest&gt;&gt;#testModelChildrenToSibling). On a syntax error squeak open the debugger and the test run stop. To run all the tests, I prefer that errors like SyntaxError generates only a test error (only for continuous integration). So I&#39;ve written an ugly hacky workaround in SyntaxError&gt;&gt;open <br>
<br>open: aSyntaxError <br>&nbsp;&nbsp;&nbsp; &quot;Answer a standard system view whose model is an instance of me.&quot;<br>&nbsp;&nbsp;&nbsp; | topView |<br>&nbsp;&nbsp;&nbsp; &lt;primitive: 19&gt; &quot;Simulation guard&quot;<br>&nbsp;&nbsp;&nbsp; shouldOpenDebuggerOnError&nbsp; ifFalse: [ ^ false ].<br>
&nbsp;&nbsp;&nbsp; Smalltalk isMorphic ifTrue: <br>....<br><br>so before running CITestRunner, I write &quot;SyntaxErrror openDebuggerOnError: false&quot;&nbsp; to disable the openning of the debugger.&nbsp; <br>I think there must be a better way to do this, but as I&#39;m a totally SmallTalk newbie ... idea ?<br>
<br>2. Some tests require user interaction with popups, ...&nbsp; I want these tests to generate an error when trying to open such dialogs, as unit tests should never require user interaction. How can I do this ?<br><br><br>3. PushUpMethodTest freezes squeak<br>
<br>&nbsp;<br>Laurent Laffont<br><br></div>