You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✅ test(pytest): add comprehensive pytest setup and tests for LangGraph agent
- Add .vscode/settings.json to configure pytest settings
- Extend Makefile with granular test targets: unit, integration, e2e, all, watch modes
- Add linting improvements and new development commands in Makefile for dev and dev_ui
- Configure pytest asyncio options in pyproject.toml
- Create pytest conftest.py fixture to load environment variables and skip tests if missing keys
- Implement detailed end-to-end tests in tests/e2e_tests/test_react_agent_e2e.py to cover:
- Simple question answering
- Streaming responses with tool usage detection
- Thread and conversation management
- Concurrent request handling
- API error handling and assistant listing
- Streaming modes testing
- Add integration test in tests/integration_tests/test_graph.py validating agent responses on LangChain founder
- Ensure tests use asyncio and properly check expected outputs for correctness
Copy file name to clipboardExpand all lines: Makefile
+72-12Lines changed: 72 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,56 @@
1
-
.PHONY: all format lint test tests test_watch integration_tests docker_tests help extended_tests
1
+
.PHONY: all format lint test test_unit test_integration test_e2e test_all test_watch test_watch_unit test_watch_integration test_watch_e2e test_profile extended_tests dev dev_ui
2
2
3
3
# Default target executed when no arguments are given to make.
4
4
all: help
5
5
6
-
# Define a variable for the test file path.
7
-
TEST_FILE ?= tests/unit_tests/
6
+
######################
7
+
# TESTING
8
+
######################
8
9
10
+
# Legacy test command (defaults to unit tests for backward compatibility)
0 commit comments