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 )
def tearDown( self ): self._runValidator() MomBuildMockupTestCase.tearDown( self )
def setUp( self ): MomBuildMockupTestCase.setUp( self, useEnvironments = True )
def setUp( self ): MomBuildMockupTestCase.setUp( self, useScm = True )
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() )