Run and debug tests in the NetAlertX devcontainer. Use this when asked to run tests, check test failures, debug failing tests, or execute pytest.
72
87%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Before running any tests, always check for existing failures first:
testFailure tool to gather current failure informationUse VS Code's testing interface or the runTests tool with appropriate parameters:
--lf flagTests live in test/ directory. App code is under server/.
PYTHONPATH is preconfigured to include the following which should meet all needs:
/app # the primary location where python runs in the production system/app/server # symbolic link to /wprkspaces/NetAlertX/server/app/front/plugins # symbolic link to /workspaces/NetAlertX/front/plugins/opt/venv/lib/pythonX.Y/site-packages/workspaces/NetAlertX/test/workspaces/NetAlertX/server/workspaces/NetAlertX/usr/lib/pythonX.Y/site-packagesRetrieve API_TOKEN using Python (not shell):
from helper import get_setting_value
token = get_setting_value("API_TOKEN")get_setting_value("API_TOKEN") returns non-emptyIf container changes affect tests, rebuild the test image first:
docker buildx build -t netalertx-test .This takes ~30 seconds unless venv stage changes (~90s).
20ddf48
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.