| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | 
							- smalltalk.addPackage('Test', {});
 
- smalltalk.addClass('NodeTestRunner', smalltalk.Object, [], 'Test');
 
- smalltalk.addMethod(
 
- "_initialize",
 
- smalltalk.method({
 
- selector: "initialize",
 
- fn: function (){
 
- var self=this;
 
- smalltalk.send(self, "_runTestSuite", []);
 
- return self;}
 
- }),
 
- smalltalk.NodeTestRunner.klass);
 
- smalltalk.addMethod(
 
- "_runTestSuite",
 
- smalltalk.method({
 
- selector: "runTestSuite",
 
- fn: function (){
 
- var self=this;
 
- var $1,$2,$3;
 
- var suite;
 
- var worker;
 
- suite=smalltalk.send((smalltalk.OrderedCollection || OrderedCollection),"_new",[]);
 
- smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.TestCase || TestCase),"_allSubclasses",[]),"_select_",[(function(each){
 
- return smalltalk.send(smalltalk.send(each,"_isAbstract",[]),"_not",[]);
 
- })]),"_do_",[(function(each){
 
- return smalltalk.send(suite,"_addAll_",[smalltalk.send(each,"_buildSuite",[])]);
 
- })]);
 
- worker=smalltalk.send((smalltalk.TestSuiteRunner || TestSuiteRunner),"_on_",[suite]);
 
- smalltalk.send(smalltalk.send(worker,"_announcer",[]),"_on_do_",[(smalltalk.ResultAnnouncement || ResultAnnouncement),(function(ann){
 
- var result;
 
- result=smalltalk.send(ann,"_result",[]);
 
- result;
 
- $1=smalltalk.send(smalltalk.send(result,"_runs",[]),"__eq",[smalltalk.send(result,"_total",[])]);
 
- if(smalltalk.assert($1)){
 
- smalltalk.send(console,"_log_",[smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(result,"_runs",[]),"_asString",[]),"__comma",[" tests run, "]),"__comma",[smalltalk.send(smalltalk.send(smalltalk.send(result,"_failures",[]),"_size",[]),"_asString",[])]),"__comma",[" failures, "]),"__comma",[smalltalk.send(smalltalk.send(smalltalk.send(result,"_errors",[]),"_size",[]),"_asString",[])]),"__comma",[" errors."])]);
 
- $2=smalltalk.send(smalltalk.send(result,"_failures",[]),"_isEmpty",[]);
 
- if(! smalltalk.assert($2)){
 
- smalltalk.send(self,"_throw_",[smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(result,"_failures",[]),"_first",[]),"_class",[]),"_name",[]),"__comma",[" >> "]),"__comma",[smalltalk.send(smalltalk.send(smalltalk.send(result,"_failures",[]),"_first",[]),"_selector",[])]),"__comma",[" is failing!"])]);
 
- };
 
- $3=smalltalk.send(smalltalk.send(result,"_errors",[]),"_isEmpty",[]);
 
- if(! smalltalk.assert($3)){
 
- return smalltalk.send(self,"_throw_",[smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(result,"_errors",[]),"_first",[]),"_class",[]),"_name",[]),"__comma",[" >> "]),"__comma",[smalltalk.send(smalltalk.send(smalltalk.send(result,"_errors",[]),"_first",[]),"_selector",[])]),"__comma",[" has errors!"])]);
 
- };
 
- };
 
- })]);
 
- smalltalk.send(worker,"_run",[]);
 
- return self}
 
- }),
 
- smalltalk.NodeTestRunner.klass);
 
 
  |