docs/testing.md
This project uses a combination of unit tests and end-to-end (e2e) tests to ensure correctness and stability.
_test.go._test package suffix.require when continuing the test is not meaningful, for example it is almost never correct to continue after an error expectation.MockHTTPClientWithHandlers helpers; GraphQL mocking uses githubv4mock.toolsnaps utility (see below).ReadOnly annotation)e2e/ directory. See the e2e/README.md for full details on running and debugging these tests.toolsnaps utility ensures that the JSON schema for each tool does not change unexpectedly.__toolsnaps__/*.snap files, where * represents the name of the toolUPDATE_TOOLSNAPS=true go test ./...GITHUB_ACTIONS=true), missing snapshots will cause a test failure to ensure snapshots are always
committed.