0
0
Fork 0
Codesys-MCP-SP21-plus/tests/integration
steel 320646b8fe
Some checks failed
CI / build-and-test (18.x) (push) Has been cancelled
CI / build-and-test (20.x) (push) Has been cancelled
CI / build-and-test (22.x) (push) Has been cancelled
fixup
2026-08-19 18:39:47 +08:00
..
build-object-tools-prep.test.ts fixup 2026-08-19 18:39:47 +08:00
device-task-tools-prep.test.ts fixup 2026-08-19 18:39:47 +08:00
e2e.test.ts fixup 2026-08-19 18:39:47 +08:00
online-tools-prep.test.ts fixup 2026-08-19 18:39:47 +08:00
project-tools-prep.test.ts fixup 2026-08-19 18:39:47 +08:00
README.md fixup 2026-08-19 18:39:47 +08:00
users-misc-tools-prep.test.ts fixup 2026-08-19 18:39:47 +08:00

Manual MSP-Con Integration Tests

These tests require a real MSP-Con installation and cannot run in CI.

Prerequisites

  • MSP-Con 3.5 SP19 or SP21 installed
  • No other MSP-Con instances running
  • Node.js 18+

Steps

1. Build the package

npm run build

2. Test persistent mode

node dist/bin.js \
  --msp-con-path "C:\path\to\MSP-Con.exe" \
  --msp-con-profile "MSP-Con V3.5 SP21 Patch 3" \
  --mode persistent \
  --verbose

Verify:

  • MSP-Con UI opens
  • Console shows "MSP-Con watcher is ready"
  • The MCP server accepts connections

3. Test headless fallback

node dist/bin.js \
  --msp-con-path "C:\path\to\MSP-Con.exe" \
  --msp-con-profile "MSP-Con V3.5 SP21 Patch 3" \
  --mode headless

4. Test --detect flag

node dist/bin.js --detect

Verify: Lists installed MSP-Con versions.

5. Ctrl+C shutdown

  • Press Ctrl+C during persistent mode
  • Verify MSP-Con shuts down cleanly