How To

Run automatic integration tests against each deployment to a non-production environment

Add a configuration section to your coherence.yml that looks like:

  type: integration_test
  command: [“npx”, 'cypress', 'run']
  image: 'cypress/included:10.9.1'

Modify the command: and image: to match the requirements defined by your own test scripts.

COHERENCE_BASE_URL will be set as an environment variable that describes the url of the Coherence environment you are running in. You can make requests to this url from within your tests.

Any environment configuration variables that your tests need can be set in the Coherence dashboard with no service attached, and will be injected into the integration_test step in your builds

Run a one-off migration task after deploying a service