generate-unit-tests - Demisto SDK Guide - Cortex - Security Operations

Demisto SDK Guide

Creation date
2023-08-01
Last date published
2024-09-11
Category
Demisto SDK Guide
Abstract

The generate-unit-tests command uses an integration's Python code to automatically generate unit tests.

This command generates unit tests automatically from an integration's Python code. It also supports generating unit tests for specific commands. Note that this command is not intended to fully replace manual work on unit tests but is intended to make it easier to write them.

Note

The generate-unit-test command only works if demisto-sdk is installed with pip install demisto-sdk [generate-unit-tests].