| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | 
							- #
 
- #    Metrix++, Copyright 2009-2013, Metrix++ Project
 
- #    Link: http://metrixplusplus.sourceforge.net
 
- #    
 
- #    This file is a part of Metrix++ Tool.
 
- #    
 
- #    Metrix++ is free software: you can redistribute it and/or modify
 
- #    it under the terms of the GNU General Public License as published by
 
- #    the Free Software Foundation, version 3 of the License.
 
- #    
 
- #    Metrix++ is distributed in the hope that it will be useful,
 
- #    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
- #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
- #    GNU General Public License for more details.
 
- #    
 
- #    You should have received a copy of the GNU General Public License
 
- #    along with Metrix++.  If not, see <http://www.gnu.org/licenses/>.
 
- #
 
- import unittest
 
- import os
 
- import tests.common
 
- class TestBasic(tests.common.TestCase):
 
-     def test_parser(self):
 
-         
 
-         runner = tests.common.ToolRunner('collect', ['--std.code.complexity.on'])
 
-         self.assertExec(runner.run())
 
-         runner = tests.common.ToolRunner('export')
 
-         self.assertExec(runner.run())
 
-         
 
-         dirs_list = [os.path.join('.', each) for each in os.listdir(self.get_content_paths().cwd)]
 
-         print dirs_list
 
-         runner = tests.common.ToolRunner('export', opts_list=['--general.format=txt'], dirs_list=dirs_list, prefix='files')
 
-         self.assertExec(runner.run())
 
-         runner = tests.common.ToolRunner('limit',
 
-                                          ['--general.max-limit=std.code.complexity:cyclomatic:0'],
 
-                                          exit_code=11)
 
-         self.assertExec(runner.run())
 
- if __name__ == '__main__':
 
-     unittest.main()
 
 
  |