How to run protractor as a script and not as a child process or using a task runner?

前端 未结 3 1780
暗喜
暗喜 2020-12-17 04:42

I am wondering how I can run a protractor test as a script and not as a child process or from a task runner such as grunt and gulp. I am wanting to run the test suits in ord

3条回答
  •  醉梦人生
    2020-12-17 05:26

    const Launcher = require("protractor/built/launcher");
    Launcher.init('path/to/conf');
    

提交回复
热议问题