Skip to content

Commit c849f3b

Browse files
- Added robot test MCP HTTP Server List Tools.
1 parent cd09c5e commit c849f3b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/developer_guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ go test -timeout 1200s --tags "sqlite_stackql" ./...
7777
**Note**: this requires the local build (above) to have been completed successfully, which builds a binary in `./build/`.
7878

7979
```bash
80-
env PYTHONPATH="$PYTHONPATH:$(pwd)/test/python" robot -d test/robot/functional test/robot/functional
80+
env PYTHONPATH="$PYTHONPATH:$(pwd)/test/python" robot -d test/robot/reports test/robot/functional
8181
```
8282

8383
Or better yet, if you have docker desktop and the `postgres` image cited in the docker compose files:
@@ -188,8 +188,8 @@ Local testing of the application:
188188
2. Build the executable [as per the root README](/README.md#build)
189189
3. Perform registry rewrites as needed for mocking `python3 test/python/stackql_test_tooling/registry_rewrite.py --srcdir "$(pwd)/test/registry/src" --destdir "$(pwd)/test/registry-mocked/src"`.
190190
3. Run robot tests:
191-
- Functional tests, mocked as needed `robot -d test/robot/functional test/robot/functional`.
192-
- Integration tests `robot -d test/robot/integration test/robot/integration`. For these, you will need to set various envirnonment variables as per the github actions.
191+
- Functional tests, mocked as needed `robot -d test/robot/reports test/robot/functional`.
192+
- Integration tests `robot -d test/robot/reports test/robot/integration`. For these, you will need to set various envirnonment variables as per the github actions.
193193
4. Run the deprecated manual python tests:
194194
- Prepare with `cp test/db/db.sqlite test/db/tmp/python-tests-tmp-db.sqlite`.
195195
- Run with `python3 test/deprecated/python/main.py`.

test/robot/functional/mcp.robot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ Resource ${CURDIR}/stackql.resource
33

44
*** Test Cases ***
55
MCP HTTP Server List Tools
6-
Pass Execution If ${EXECUTION_PLATFORM} == docker Skipping session test in windows
6+
Pass Execution If "${EXECUTION_PLATFORM}" == "docker" Skipping MCP test in docker
77
${serverProcess}= Start Process ${REPOSITORY_ROOT}${/}build${/}stackql
88
... \-\-mcp.server.type\=http
99
... \-\-mcp.config\='{"server": {"transport": "http", "address": "127.0.0.1:9912"}}'
1010
${result}= Run Process ${REPOSITORY_ROOT}${/}build${/}stackql_mcp_client
1111
... \-\-client\-type\=http
1212
... \-\-url\=http://127.0.0.1:9912
13-
... stdout=stdout.txt
14-
... stderr=stderr.txt
13+
... stdout=${CURDIR}/tmp/MCP-HTTP-Server-List-Tools.txt
14+
... stderr=${CURDIR}/tmp/MCP-HTTP-Server-List-Tools-stderr.txt
1515
Should Contain ${result.stdout} Get server information
1616
Should Be Equal As Integers ${result.rc} 0
1717
[Teardown] Terminate Process ${serverProcess} kill=True

0 commit comments

Comments
 (0)