Skip to main content

Runbook - Testing the CLI

Goal

To be able to test CLI use-cases. This runbook exists because writing an end-to-end test architecture at this stage of the project is too heavy.

Server mode

Server logs

./medatarun serve

in another terminal,

medatarun help model 

Test:

  • that server launches, you can see logs
  • that command gets you help on model actions
  • UI is ok on http://localhost:8080

Server port

Goal: test that server works on the right port and that CLI can connect to it.

./medatarun serve -Dmedatarun.server.port=8081

in another terminal,

medatarun -Dmedatarun.server.port=8081 help model 

Test:

  • that server launches,
  • that command gets you help on model actions
  • that UI is ok on http://localhost:8081

Server host

Goal: test that server works on the right port/host and remotely, and that CLI can connect to it.

./medatarun serve -Dmedatarun.server.host=192.168.0.101 -Dmedatarun.server.port=8081

in another terminal,

medatarun -Dmedatarun.server.host=192.168.0.101 -Dmedatarun.server.port=8081 help model 

Test: