Skip to content

Disposable test environments for 12factor applications using Docker.

License

Notifications You must be signed in to change notification settings

rochacon/temaki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

temaki

Disposable test environment for 12 factor applications.

temaki depends on Docker.

⚠️ temaki is still in early development and may/will change.

Install

Just go get it:

go get github.com/rochacon/temaki

Using it

Create a temaki.yml file at your project root folder

Here is a example of the config file

-- The command that run your test suite
cmd: go test ./...
-- Dockerfile location
dockerfile: ./Dockerfile
-- Name of the Docker image
image: my-app
-- Dependant services (databases, cache, queues, etc.)
-- Hooks are supported to facilitate test setup
services:
  -- those are the environment variables that Temaki will set for you test suite
  DATABASE_URL:
    format: postgres://postgres:postgres@{{ .Host }}:{{ .Port }}/test?sslmode=disable
    image: postgres:9.4
    port: 5432
    hooks:
      pre-run:
        - psql "CREATE DATABASE test CHARSET utf8;"
      post-run:
        - psql "DROP DATABASE test;"
  BROKER_URL:
      format: amqp://guest@{{ .Host }}:{{ .Port }}/test
      image: rabbitmq

Now run temaki to run your test suite against disposable services.

You may also specify the test suite command at runtime, like:

temaki go test -cover -v ./handlers/...

About

Disposable test environments for 12factor applications using Docker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages