def setUp(self): execute("npm install") execute( location("./node_modules/protractor/bin/webdriver-manager update")) prepare_db() self.p = Process(target=start_server) self.p.start()
def test_run_e2e_tests(self): selenium = Process(target=start_selenium) selenium.start() time.sleep(5) result = execute(location("./node_modules/protractor/bin/protractor e2e.conf.js")) self.assertTrue(result) selenium.terminate()
def test_run_e2e_tests(self): selenium = Process(target=start_selenium) selenium.start() time.sleep(5) result = execute( location("./node_modules/protractor/bin/protractor e2e.conf.js")) self.assertTrue(result) selenium.terminate()
def start_selenium(): muterun(location("./node_modules/protractor/bin/webdriver-manager start"))
def test_run_unit_tests(self): result = execute(location("./node_modules/karma/bin/karma start"))
def setUp(self): execute("npm install") execute(location("./node_modules/protractor/bin/webdriver-manager update")) prepare_db() self.p = Process(target=start_server) self.p.start()