Skip to content

Latest commit

 

History

History
 
 

testing-unit-go

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Unit Testing Pulumi programs in Go

An example of writing mock-based unit tests with both infrastructure definition and tests written in Go.

Prerequisites

Install Go.

Running the tests

  1. Restore your Go dependencies. This example currently uses Dep to do so:

    $ dep ensure
  2. Run the tests:

    $ go test
    
    PASS
    ok  	testing-unit-go	0.400s