Cortex XSOAR VSCode PluginWork with Visual Studio Code to edit, validate and format your Cortex XSOAR integrations and automations. To start using the extension, first of all, install demisto-sdk. You can also use the XSOAR: Install/Update Demisto-SDK command. Commands:
NOTE: To use the extension, make sure there's a ConfigurationsLocal Environment (LINUX or MacOS)Execute the command XSOAR: Install XSOAR local development environment. This will install local development environment with demisto-sdk and will configure the demisto-sdk with XSOAR. If Homebrew is available, you can choose to install any of python, poetry, node, docker or pyenv. Remote Environment (All OS)Or you can follow this guide to configure a fully configured remote development environnement, with Configure XSOAR connectionThis will configure
Configure XSOAR unit testsThe extension supports configuring the integration/script unit tests. When working on an integration or a script, you can right click on it, and click on Configure XSOAR unit tests. This will configure the XSOAR unit-tests to run and debug them in the _test.py to run from the test file or from the If you there is a Pytest discovery error, there is a probably missing dependencies. Either install the missing dependencies, or use Setup integration/script environment with new workspace instead. Setup integration/script environmentThe extension supports configuring integration/script environment. When working on an integration or a script, you can right click on it, and click on Setup integration/script environment. This will configure debugging and testing the integration/script in a Docker container. To execute the integration/script in the container, you can use the You will be prompted to choose between current workspace or a new workspace. Opening a new workspace will create a new virtual environment with the integration/script dependencies installed, and will open a new VSCode workspace with the integration/script folder. This will allow better IDE autocompletion, but the creation of virtual environment may take a few minutes. This is the recommended way to develop and debug your integration. Python 2.* SupportUsing a Python 2.* virtual environnement or container, mypy will not be able to be installed. For debugging the tests, it is necessary to install The VSCode Python extension version ContributingContributions are welcome and appreciated. To contribute follow the instructions below and submit a PR. Before merging any PRs, we need all contributors to sign a contributor license agreement. By signing a contributor license agreement, we ensure that the community is free to use your contributions. When you open a new pull request, a bot will evaluate whether you have signed the CLA. If required, the bot will comment on the pull request, including a link to accept the agreement. The CLA document is also available for review as a PDF. If the DevelopmentDev Setup Environment
Main Locations
|