Example #1
0
 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()
Example #2
0
 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()
Example #3
0
 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()
Example #4
0
def start_selenium():
    muterun(location("./node_modules/protractor/bin/webdriver-manager start"))
Example #5
0
 def test_run_unit_tests(self):
     result = execute(location("./node_modules/karma/bin/karma start"))
Example #6
0
def start_selenium():
    muterun(location("./node_modules/protractor/bin/webdriver-manager start"))
Example #7
0
 def test_run_unit_tests(self):
     result = execute(location("./node_modules/karma/bin/karma start"))
Example #8
0
 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()