Categorygithub.com/dennwc/testproxy
modulepackage
1.0.1
Repository: https://github.com/dennwc/testproxy.git
Documentation: pkg.go.dev

# README

Go test proxy

This package provides a way to proxy remote Go test results to the local Go test.

Check an example of local and remote tests.

Requires Go installed on the host.

Why?

Sometimes it's useful to compile a test binary for a different platform using Go test on the host, and then execute it in some emulator or isolated environment (VM/Docker).

This library provides a way to write Go test that sets up an environment, compiles the remote test, executes it on remote and streams sub-test results back to the host.

License

MIT

# Packages

No description provided by the author

# Functions

NewTestBinary creates a test runner from a given test binary.
Replay test events from JSON stream r on the current test suite.
Run the Go test using runner and return a JSON event stream.
RunAndReplay runs the Go test using runner and replays all test results on t.
RunTestBinary runs the compiled Go test binary and replays all test results on t.

# Interfaces

Runner represents a possibly remote go test.