Test: choose this option to run individual tests from a test file and specify the path to this file in the Test file field. Click in the Suite name field and configure a list of suites to run using the and buttons. Suite: choose this option to run individual suites from a test file and specify the path to this file in the Test file field. Test file: choose this option to run only the tests from one file and specify the path to this file in the Test file field. The available options are:Īll tests: choose this option to run all the tests from the configuration file. In this area, specify the tests to be executed. In this field, optionally specify the environment variables for executing commands. To change this predefined setting, specify the path to the desired folder. By default, the Working directory field shows the project root folder. In this field, specify the working directory of the application. Alternatively, type the path to executable file manually, or click Browse and select the location in the dialog, that opens. If you installed Karma regularly through the Node Package Manager, WebStorm detects the Karma installation home itself. In this field, specify the Karma installation home /npm/node_modules/karma. Otherwise, by default the debug process will use V8 Debugging Protocol. Use -inspect or -inspect-brk parameter when you are using Node.js v7 for Chrome Debugging Protocol support. Therefore make sure you have the coffeescript package installed locally as described in Install the CoffeeScript compiler. This mode requires that the register.js file, which is a part of the coffeescript package, is located inside your project. Use -require coffeescript/register to have CoffeeScript files compiled into JavaScript on the fly during run. In this field, type the Node.js-specific command-line options to be passed to the Node.js executable file. You can also choose another configured local or remote interpreter or click and configure a new one.įor more information, refer to Configuring remote Node.js interpreters, Configuring a local Node.js interpreter, and Using Node.js on Windows Subsystem for Linux. In most cases, WebStorm detects the project default interpreter and fills in the field itself. If you choose the Project alias, WebStorm will automatically use the project default interpreter from the Node interpreter field on the Node.js page. In this field, specify the Node.js interpreter to use. To see all the available CLI options, type karma start -help in the Terminal Alt+F12. For more information, refer to Automated testing with Headless Chrome. In this field, specify the command-line options that you want to pass to Karma to override the default settings from the configuration file.įor example, to run or debug tests in Headless Chrome, type -browsers ChromeHeadless in the Karma options field. In this field, specify the location of the Karma configuration file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |