Testing | ray-go | Spatie       

 SPATIE  

ray-go
======

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Ray-go](https://spatie.be/docs/ray-go/v1)  Testing

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/ray-go/v1) 

  Testing    
- [ Introduction ](https://spatie.be/docs/ray-go/v1/introduction)
- [ Installation and setup ](https://spatie.be/docs/ray-go/v1/installation-and-setup)
- [ Using Ray with Go ](https://spatie.be/docs/ray-go/v1/usage)
- [ Configuration ](https://spatie.be/docs/ray-go/v1/configuration)
- [ Methods ](https://spatie.be/docs/ray-go/v1/reference)
- [ Detecting and removing Ray calls ](https://spatie.be/docs/ray-go/v1/detecting-removing-ray-calls)
- [ Testing ](https://spatie.be/docs/ray-go/v1/testing)
- [ Releasing ](https://spatie.be/docs/ray-go/v1/releasing)
- [ Changelog ](https://spatie.be/docs/ray-go/v1/changelog)
- [ Support us ](https://spatie.be/docs/ray-go/v1/support-us)

 Testing
=======

Run `go test -race ./...` to execute the tests and examples. Run `go vet ./...` for static checks and `go mod tidy -diff` to check dependency metadata. Format code with `gofmt -w .`.

The tests use real local HTTP capture servers and replacement transports. No Ray desktop app is required. CI runs on Linux, macOS and Windows.

CI runs on pushes and pull requests, and can also be started manually from the Actions tab. A release still requires completed green CI on the exact main commit, whether started by a push or manually.

`TestPHPProtocol` compares 58 requests with an actual PHP capture, preserving payload content and UUID relationships. It normalizes language-specific origins and version metadata, and compares embedded JSON semantically. XML formatting has separate Go-specific tests. See [fixture provenance](https://github.com/spatie/ray-go/blob/main/testdata/README.md) and [compatibility notes](https://github.com/spatie/ray-go/blob/main/PARITY.md).

Other tests exercise custom payload selection, transport replacement, origin mapping, hooks, cancellation, errors, limits, timers, concurrency and pause/continue/stop. Protocol tests do not establish desktop visual rendering. A manual desktop check is still useful before relying on custom renderers.

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
