Skip to content

miltador/dynamodbtest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dynamodbtest

GoDoc Linux and OS X Build Status

Package for testing Go language programs that use DynamoDB.

Runs a DynamoDB local server.

Install

$ go get github.com/miltador/dynamodbtest

Usage

package foo

import (
    "github.com/miltador/dynamodbtest"
    "testing"
)

func TestFoo(t *testing.T) {
	// Log output to aid debugging
	dynamodbtest.LogOutput = true

	// Start a new test process
	db, err := dynamodbtest.New()
	if err != nil {
		t.Fatal(err)
	}
	defer db.Close()

	// Choice of client is up to you, but you will need to point it at db.URL
	client := NewDynamoClient(...)
	client.URL = db.URL()
}

Documentation

You can read the documentation on GoDoc.

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%