Example #1
0
        private static void Preheat(List <Algorithm> algorithms)
        {
            TestSuit testSuit = new TestSuit();

            testSuit.LoadTestsFromDir("../../preheat");

            foreach (var algo in algorithms)
            {
                Console.WriteLine("Preheating algorithm: " + algo.GetType().Name + " [" + algo.GetConfig() + "]");
                testSuit.RunAllTests(algo);
            }
        }
Example #2
0
        private static void RunTests(List <Algorithm> algorithms)
        {
            TestSuit testSuit = new TestSuit();

            testSuit.LoadTestsFromDir("../../data");

            Console.WriteLine("========== Initiating tests ==========");

            foreach (var algo in algorithms)
            {
                Console.WriteLine("Running algorithm: " + algo.GetType().Name + " [" + algo.GetConfig() + "]");
                new ResultPrinter(testSuit.RunAllTests(algo), algo).Print();
            }
        }
Example #3
0
        private static void RunGeneratedTests(List <Algorithm> algorithms)
        {
            TestSuit testSuit = new TestSuit();

            Console.WriteLine("========== Generating tests ==========");
            testSuit.GenerateTests(new GeneratorSetupGenerator().GetAllSetups());

            Console.WriteLine("========== Initiating tests ==========");

            List <KeyValuePair <Algorithm, List <TestResult> > > testResults = new List <KeyValuePair <Algorithm, List <TestResult> > >();

            foreach (var algo in algorithms)
            {
                Console.WriteLine("Running algorithm: " + algo.GetType().Name + " [" + algo.GetConfig() + "]");
                testResults.Add(new KeyValuePair <Algorithm, List <TestResult> >(algo, testSuit.RunAllTests(algo)));
            }
            new ResultPrinter(testResults).Print();
        }
Example #4
0
        private static void Preheat(List<Algorithm> algorithms)
        {
            TestSuit testSuit = new TestSuit();
              testSuit.LoadTestsFromDir("../../preheat");

              foreach (var algo in algorithms)
              {
            Console.WriteLine("Preheating algorithm: " + algo.GetType().Name + " [" + algo.GetConfig() + "]");
            testSuit.RunAllTests(algo);
              }
        }
Example #5
0
        private static void RunTests(List<Algorithm> algorithms)
        {
            TestSuit testSuit = new TestSuit();
              testSuit.LoadTestsFromDir("../../data");

              Console.WriteLine("========== Initiating tests ==========");

              foreach (var algo in algorithms)
              {
            Console.WriteLine("Running algorithm: " + algo.GetType().Name + " [" + algo.GetConfig() + "]");
            new ResultPrinter(testSuit.RunAllTests(algo), algo).Print();
              }
        }
Example #6
0
        private static void RunGeneratedTests(List<Algorithm> algorithms)
        {
            TestSuit testSuit = new TestSuit();
              Console.WriteLine("========== Generating tests ==========");
              testSuit.GenerateTests(new GeneratorSetupGenerator().GetAllSetups());

              Console.WriteLine("========== Initiating tests ==========");

              List<KeyValuePair<Algorithm, List<TestResult>>> testResults = new List<KeyValuePair<Algorithm, List<TestResult>>>();
              foreach (var algo in algorithms)
              {
            Console.WriteLine("Running algorithm: " + algo.GetType().Name + " [" + algo.GetConfig() + "]");
            testResults.Add(new KeyValuePair<Algorithm, List<TestResult>>(algo, testSuit.RunAllTests(algo)));
              }
              new ResultPrinter(testResults).Print();
        }