def run_tests(self):
     '''
     The controller function of the test runner object. Defines the
     complete pipeline.
     '''
     self.root = initiate_tests()
     self.root.run(self)
     self.recurse_label_tests(self.root)
     self.recurse_run_tests(self.root)
     self.recurse_generate_json(self.root)
Exemplo n.º 2
0
    def run_tests(self):
        """Complete pipeline of running tests from bases through the graph
        
        The controller function of the test runner object. Defines the
        complete pipeline. There are multiple base tests for a single server.
        There is one base per project, study, or expression instance. For
        example, if the user requested that 2 projects, 3 studies, and 4
        expressions be tested on the server, then 9 base tests would exist
        for the TestRunner. All tests are run recursively, starting from the 
        base test for each graph.
        """

        self.base_tests = initiate_tests(self.server_config)
        for obj_type, obj_id, base_test in self.base_tests:
            base_test.run(base_test)
            self.recurse_label_tests(base_test)
            self.recurse_run_tests(base_test)
            self.recurse_generate_json(obj_type, obj_id, base_test)