Cicada

Cicada

  • Docs
  • Guides
  • API
  • Runners
  • Help

›Introduction

Introduction

  • Quickstart
  • Tests
  • State
  • Actions and Asserts
  • Runners
  • Reports

Guides

  • REST API Guide
  • Async App Guide
  • gRPC Server Guide
  • Kubernetes Guide

API

  • Test
  • Action
  • Assert
  • Config
  • Test Engine
  • Verification

Runners

  • REST Runner
  • SQL Runner
  • Kafka Runner
  • S3 Runner
  • gRPC Runner

Quickstart

Cicada requires Docker to run and is available as a Docker image:

docker pull cicadatesting/cicada-2-engine:latest

Running Cicada

Configuring the network

To run Cicada, you'll need to configure a network for the runners to operate in:

docker network create cicada

By default, Cicada uses the cicada network. You can also override the network by providing the CONTAINER_NETWORK environment variable.

If the network does not exist, Cicada will attempt to create it, unless the CREATE_NETWORK variable is set to false

See config for available environment variables

Creating a test

Create a folder called tests and add a file called test.cicada.yaml to it:

description: Example test
tests:
  - name: check-google
    description: Checks the status of the Google homepage
    runner: rest-runner
    asserts:
      - type: StatusCode
        params:
          method: GET
          actionParams:
            url: https://google.com
          expected: 200

This test will make a call to the Google home page and assert that it receives a 200 status code

Starting the engine

Once your system is configured, you can start the container. Make sure to add it to the network and mount the following volumes:

  • Docker socket (usually at /var/run/docker.sock)
  • Tests directory -> Where your *.cicada.yaml files are located
  • Reports directory -> Where you want the reports generated to
docker run --rm \
    --name cicada-engine \
    --network cicada \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v $(pwd)/tests:/tests \
    -v $(pwd)/reports:/reports \
    cicadatesting/cicada-2-engine

When this finishes running, check the report.md file to see the results

Tests →
  • Running Cicada
    • Configuring the network
    • Creating a test
    • Starting the engine
Cicada
Docs
Getting StartedAPI Reference
More
GitHubStar
Copyright © 2021 Cicada