Run Integration Tests

Using this repository we’ll help you get up to speed with basic functionality such as: compiling, testing and building Docker images.

This project uses Node Js to build an application which will eventually become a distributable Docker image. You can use the composition step to run a complex interaction of services. For example, run integration tests on an already built image.

Looking around

In the root of this repository you’ll find a file named codefresh.yml, this is our build descriptor and it describes the different steps that comprise our process. Let’s quickly review the contents of this file:

codefresh.yml

version: '1.0'
steps:
  build_the_image:
    type: build
    image_name: myuser/myservice
    tag: develop
  
  integration_test:
    type: composition
    composition:
      version: '2'
      services:
        db:
          image: postgres
    composition_candidates:
      test:
        image: ${{build_the_image}} # image that will be tested
        command: gulp integration_test # your test command
Example

Just head over to the example repository in Github and follow the instructions there.