The available options are:Īll in directory: choose this option to run all the tests from the files stored in a folder and specify the path to this folder in the Test directory field. In this area, specify the tests to be executed. For example, add a -watch flag to turn on the autotest-like runner.Īs a result, any test in the current run configuration restarts automatically on changing the related source code, without clicking the Rerun button. In this field, specify additional Mocha command-line options. This means that all the tests in the specified test folder must be written according to the same interface and this interface must be chosen from the list. If during test execution IntelliJ IDEA runs against a test of another interface, the test session will be canceled with an error. IntelliJ IDEA will recognize only tests that comply with the chosen interface. Alternatively, type the path to executable file manually, or click Browse and select the location in the dialog, that opens.įrom this list, choose the interface according to which the tests in the test folder are written. If you installed Mocha regularly through the Node Package Manager, IntelliJ IDEA detects the Mocha installation home itself. In this field, specify the Mocha installation home /npm/node_modules/mocha. NODE_DISABLE_COLORS: Set to 1 to disable colors in the REPL. NODE_MODULE_CONTEXTS: Set to 1 to load modules in their own global contexts. NODE_PATH: A :-separated list of directories prefixed to the module search path. The definitions of variables are displayed in the Environment variables read-only field with semicolons as separators, for example: To discard a variable definition, select it in the list and click. To define a new variable, click and specify the variable name and value. Click Browse to the right of the field and configure a list of variables in the Environment Variables dialog, that opens: In this field, specify the environment variables for the Node.js executable file, if applicable. 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. For more information, refer to Node Parameters. In this field, type the Node.js-specific command-line options to be passed to the Node.js executable file. If you choose the Project alias, IntelliJ IDEA will automatically use the project default interpreter from the Node interpreter field on the Node.js page. Choose one of the configured interpreters or click and configure a new one as described in Configuring a local Node.js interpreter. In this field, specify the Node.js interpreter to use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |