Пример #1
0
	def __init__( self, pyLintTool = 'pylint', pyLintRcFile = 'pylintrc' , htmlOutputPath = 'pylint.html',
				modules = None, name = None, minimumSuccessRate = 0.0 ):
		Analyzer.__init__( self, name, minimumSuccessRate )
		searchPaths = [ os.path.join( sys.prefix, 'Scripts' ), os.path.join( sys.prefix, 'bin' ) ]
		self._setCommand( pyLintTool )
		self._setCommandSearchPaths( searchPaths )
		self.setModules( modules )
		self.setPyLintRcFile( pyLintRcFile )
		self.setHtmlOutputPath( htmlOutputPath )
Пример #2
0
	def setup( self ):
		self._setCommand( "krazy2all" )
		argv = ["--verbose", "--export", "xml"]
		argv += self.getSetting( KrazyChecker.DefaultConfiguration, True )
		self._setCommandArguments( argv )

		action = CallbackShellCommandAction( self.getCommandWithArguments(), combineOutput = False, callback = self.runMethod )
		action.setWorkingDirectory( self.getInstructions().getSourceDir() )
		step = self.getInstructions().getStep( 'test' )
		step.addMainAction( action )
		return Analyzer.setup( self )
Пример #3
0
	def setup( self ):
		action = _PyLintCheckerAction( self )
		action.setWorkingDirectory( self.getInstructions().getProject().getSourceDir() )
		step = self.getInstructions().getStep( 'test' )
		step.addMainAction( action )
		return Analyzer.setup( self )
Пример #4
0
	def preFlightCheck( self ):
		pyConf = self.getInstructions()
		if not isinstance( pyConf, PythonConfiguration ):
			raise MomError( 'A PyUnitTester can only be assigned to a PythonConfiguration!' )
		return Analyzer.preFlightCheck( self )
Пример #5
0
	def __init__( self, name = None, minimumSuccessRate = 1.0 ):
		Analyzer.__init__( self, name, minimumSuccessRate )
		self.__testArgument = None
		self.__action = None
Пример #6
0
	def __init__( self, name = None ):
		Analyzer.__init__( self, name )
		self._setCommand( "krazy2" )