Skip to content

Files

Latest commit

9ac6607 · Mar 25, 2025

History

History

testing-unit-go

Deploy this example with Pulumi Deploy this example with Pulumi

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. Run the tests:

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

Further steps

Learn more about testing Pulumi programs: