testiumjs / testium-core

Juggling the bits and pieces to run integration tests
BSD 3-Clause "New" or "Revised" License
4 stars 7 forks source link

support "processes" to handle extra procs #61

Closed dbushong closed 3 years ago

dbushong commented 3 years ago

Now you can add something like this to your .testiumrc:

{
  "processes": {
    "memcached": {
      "command": "memcached",
      "commandArgs": ["-u", "memcached", "-d"],
      "port": 11211,
      "reuseExisting": true
    }
  }
}

...and that will add a new server to the set to be started before tests run. The properties inside the processes option are the server names, and all of the other options are those for subprocess, except for reuseExisting.

Iff reuseExisting is set to true, and something is already listening on the given (now mandatory) port, then the command and commandArgs will not be run.


This PR was started by: git wf pr