def setUp( self, useScm = False, useEnvironments = False ):
		MomTestCase.setUp( self, False )

		sys.argv = [] # reset command line arguments

		build = Build( name = 'XmlReportTestBuild' )
		project = Project( 'XmlReportTestProject' )
		build.setProject( project )

		if useScm:
			project.createScm( 'git://github.com/KDAB/Make-O-Matic.git' )

		if useEnvironments:
			environments = Environments( [ 'dep-a-1.?.0' ], 'Test dependency', project )
		else:
			environments = Environments()

		# add some plugin
		dox = DoxygenGenerator()
		dox.setEnabled( False )
		project.addPlugin( dox )

		# add some configurations
		Configuration( 'Debug', environments )
		Configuration( 'Release', environments )

		build.getSettings().set( Settings.EnvironmentsBaseDir, self.TEST_MOM_ENVIRONMENTS )

		self.build = build
		self.project = project
		self.cwd = os.getcwd()