Wiki
Show
Ignore:
Timestamp:
02/28/10 21:24:48 (2 years ago)
Author:
Chuck.Esterbrook
Message:

Added -test-runner command line option to specify the method to invoke to run the unit tests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/CommandLine.cobra

    r2291 r2295  
    7373            else 
    7474                this['type'] = 'string' 
    75         assert _type in ['accumulator', 'args-list', 'bool', 'int','main', 'menu', 'set', 'string'] 
     75        assert _type in ['accumulator', 'args-list', 'bool', 'int', 'main', 'menu', 'set', 'string'] 
    7676        if .containsKey('synonyms') 
    7777            for syn in this['synonyms'] 
     
    312312            'name': 'main', 
    313313            'type': 'string', 
    314             'description': 'Specify the type containing the "main" method, particularly when more than type declarations has a "main" method.', 
     314            'description': 'Specify the type containing the "main" method, particularly when more than one type declaration has a "main" method.', 
    315315            'args': 'TYPENAME', 
    316316        }, 
     
    416416        { 
    417417            'name': 'test', 
    418             'description': 'Run the unit tests in the code.', 
     418            'description': 'Run the unit tests in the code without running .main. Works for libraries too.', 
    419419            'type': 'main', 
     420        }, 
     421        { 
     422            'name': 'test-runner', 
     423            'type': 'string', 
     424            'description': 'Specify the method to invoke to run the unit tests. The method must be "shared". Typically the method will make use of classes in Cobra.Lang.Test to set up and initiate the test run.', 
     425            'default': 'Cobra.Lang.CobraCore.runAllTests', 
     426            'args': 'QUALIFIED-METHOD-NAME|nil', 
    420427        }, 
    421428        {