def test_new_agile_model_completes(self): agile_flows.setup_environment() random.seed(environment.resources["seed"]) environment.resources["mutating"] = False try: agile_flows.implement_50_features() except Exception, e: print str(e) self.assertTrue(False, str(e))
def test_unittesting_mutation_stressed_agile(self): # Carry out the simulation with and without mutation, and see whether one takes much longer than another agile_flows.setup_environment() random.seed(environment.resources["seed"]) environment.resources["mutating"] = True try: agile_flows.implement_50_features() except Exception, e: print str(e) self.assertTrue(False, str(e))
def test_multiple_seed_average(self): agile_results = [[],[]] waterfall_results = [[],[]] seed = 0 for i in range(8): agile_flows.setup_environment() random.seed(environment.resources["seed"]) environment.resources["mutating"] = i % 2 == 1 seed += 50 environment.resources["seed"] = seed try: agile_flows.implement_50_features() except Exception, e: print str(e) self.assertTrue(False, str(e)) agile_results[i%2].append(copy.deepcopy(environment.resources))
def test_multiple_seed_average(self): agile_results = [[], []] waterfall_results = [[], []] seed = 0 for i in range(8): agile_flows.setup_environment() random.seed(environment.resources["seed"]) environment.resources["mutating"] = i % 2 == 1 seed += 50 environment.resources["seed"] = seed try: agile_flows.implement_50_features() except Exception, e: print str(e) self.assertTrue(False, str(e)) agile_results[i % 2].append(copy.deepcopy(environment.resources))
import numpy as np import matplotlib.pyplot as plt import unittest, environment, sys, agile_flows, waterfall_flows, copy import time from fuzzing_base import * agile_results = [[],[]] waterfall_results = [[],[]] seed = 0 for i in range(8): agile_flows.setup_environment() random.seed(environment.resources["seed"]) environment.resources["mutating"] = i % 2 == 1 seed += 60 environment.resources["seed"] = seed try: agile_flows.implement_50_features() except Exception, e: print str(e) agile_results[i%2].append(copy.deepcopy(environment.resources)) seed = 0 for i in range(8): waterfall_flows.setup_environment() random.seed(environment.resources["seed"]) environment.resources["mutating"] = i % 2 == 1