test_with_stripe_mock
commandThis package is not in the latest version of its module.
Details
Valid go.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
A script that wraps the run of the project test suite and starts stripe-mockwith a custom OpenAPI + fixtures bundle if one was found in the appropriatespot (see `pathSpec` below).
The script passes all its arguments to a Go's test command, and defaults to`./...`. For example, both of the following are valid invocations:
go run test_with_stripe_mock/main.gogo run test_with_stripe_mock/main.go ./charge
The reason that we need a separate script for this is because Go's testinginfrastructure doesn't provide any kind of global hook that we can use to dothis work in only one place before any tests are run.