Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 471 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 471 Bytes

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