-
Notifications
You must be signed in to change notification settings - Fork 1
Testing
Our project uses pytest for automated backend testing and an interactive playground for debugging individual AI agents.
We have a collection of unit tests for the Django application's models and business logic. A helper script is provided to run all tests easily.
-
Ensure Docker Containers are Running: If your services aren't running, start them with
docker-compose up. -
Execute the Test Script: From the root directory of the project, run the
run_tests.shscript../run_tests.sh
This script executes
pytestinside thewebcontainer and will run all tests found in theusersandscansapps. It will print a detailed report of passing and failing tests.
Testing the multi-agent orchestration requires running both the OrchestratorAgent and its "worker" agents simultaneously on your local machine.
The worker agent must be running first so the orchestrator has an endpoint to call.
- Open Terminal 1.
- Navigate to the worker agent's directory:
cd agents/websearchagent/. - Run the local playground. It will start on its default port (e.g.,
8501).make playground
- Keep this terminal running.
- Open a new terminal (Terminal 2).
- Navigate to the orchestrator's directory:
cd agents/orchestratoragent/. - Run its playground. The
Makefilefor the orchestrator is configured to use a different port (e.g.,8502) to avoid conflicts.make playground
- Keep this terminal running.
- You now have two agent servers running locally.
- Open your web browser and go to the Orchestrator's UI address (e.g.,
http://localhost:8502). - When you submit a prompt to the orchestrator, you can watch both terminal windows to see the log output as the orchestrator makes an API call to the worker agent. This is the primary way to debug the full multi-agent workflow.