在使用量角器的调试器中运行测试时如何查看输出结果?

时间:2015-10-14 14:57:57

标签: javascript angularjs selenium protractor

我希望在Visual Studio Code中使用量角器在调试器中运行测试时看到输出结果。

我有以下参数:

// Name of configuration; appears in the launch configuration drop down menu.
            "name": "Tests",
            // Type of configuration. Possible values: "node", "mono".
            "type": "node",
            // Workspace relative or absolute path to the program.
            "program": "node_modules/*",
            // Automatically stop program after launch.
            "stopOnEntry": false,
            // Command line arguments passed to the program.
            "args": ["Configuration.js", "--resultJsonOutputFile result.json", "--suite=lab"],
            // Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
            "cwd": "./test/",
            // Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
            "runtimeExecutable": "",
            // Optional arguments passed to the runtime executable.
            "runtimeArgs": ["--nolazy"],
            // Environment variables passed to the program.
            "env": {
                "NODE_ENV": "development"
            },
            // Use JavaScript source maps (if they exist).
            "sourceMaps": false,
            // If JavaScript source maps are enabled, the generated code is expected in this directory.
            "outDir": "output"

如果我运行命令行:protractor Configuration.js --resultJsonOutputFile output\result.json --suite=smoke,它就可以运行。

0 个答案:

没有答案