autogold v2.0.0 - automatically update your Go tests

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • autogold

    Automatically update your Go tests

  • valast

    Convert Go values to their AST

  • Passing any value your test got - autogold will format that value in Go syntax and write a testdata/.golden file with what the value was. If the contents on disk are different than what your test produces, the test will fail and you'll get a nice (now colored) diff explaining the difference. If you like the change, you can run go test ./... -update and it'll automatically update the .golden files on disk to match what your test actually produced.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts