Example #1
0
	def testConvertXmlReportToTextSummary( self ):
		MomBuildMockupTestCase.setUp( self, useScm = True ) # enable SCM
		self._executeBuild()
		converter = XmlReportConverter( self._getXmlReport() )
		text = converter.convertToTextSummary()

		self.assertTrue( len( text ) > 100 )
	def setUp( self ):
		MomBuildMockupTestCase.setUp( self, useScm = True )

		mApp().getSettings().set( Settings.EmailReporterDefaultRecipients, ["DR"] )
		mApp().getSettings().set( Settings.EmailReporterConfigurationErrorRecipients, ["CER"] )
		mApp().getSettings().set( Settings.EmailReporterMomErrorRecipients, ["MER"] )
		mApp().getSettings().set( Settings.EmailReporterSender, "S" )

		# add EmailReporter plugin
		self.reporter = EmailReporter( "TestEmailReporter" )
		self.build.addPlugin( self.reporter )
Example #3
0
	def tearDown( self ):
		self._runValidator()

		MomBuildMockupTestCase.tearDown( self )
Example #4
0
	def setUp( self ):
		MomBuildMockupTestCase.setUp( self, useEnvironments = True )
Example #5
0
	def setUp( self ):
		MomBuildMockupTestCase.setUp( self, useScm = True )
Example #6
0
	def setUp( self ):
		MomBuildMockupTestCase.setUp( self, useEnvironments = True )

		mApp().getSettings().set( Settings.ScriptLogLevel, 1 )
		mApp().getSettings().set( Settings.EnvironmentsBaseDir, self.TEST_MOM_ENVIRONMENTS )
		mApp().addLogger( ConsoleLogger() )