Skip to content

Instantly share code, notes, and snippets.

@dmcnulla
Last active December 15, 2022 19:30
Show Gist options
  • Save dmcnulla/53dbd2929f8da00c3472f0181f6159d1 to your computer and use it in GitHub Desktop.
Save dmcnulla/53dbd2929f8da00c3472f0181f6159d1 to your computer and use it in GitHub Desktop.
Runs all unit tests in qta-tools repo (ones in there now)
# Runs all if no parameter, runs unit tests for specific tool if tool name given (must match directory name)
if [ $# -eq 0 ]; then
for package in monitor_viewpoint cmic_alert verify_nodes nos_data_load agent_snow_validation tenable_scan framework config_viewpoint baas imc_operations tdc_image verify_connectivity verify_imc config_dbs_ldap snapshots_service sys_validate data_backup check_storage_space create_aliases verify_tasm_enabled nos_loader dbs_control_settings data_load; do
PYTHONPATH=. pytest $package/tests
done
else
PYTHONPATH=. pytest $1/tests
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment