BuildkiteTestCollector.HttpTransport (buildkite_test_collector v0.1.0)

Handles encoding and transmitting payloads to Buildkite's test analytics API via HTTP.

Link to this section Summary

Functions

If the payload contains at least the configured batch size (default 500) test results, then send a batch to the API.

Send a Payload to Buildkite's test analytics API.

Link to this section Functions

Link to this function

maybe_send_batch(payload)

@spec maybe_send_batch(BuildkiteTestCollector.Payload.t()) ::
  {:ok, BuildkiteTestCollector.Payload.t()} | {:error, any()}

If the payload contains at least the configured batch size (default 500) test results, then send a batch to the API.

@spec send(BuildkiteTestCollector.Payload.t()) :: {:ok, map()} | {:error, any()}

Send a Payload to Buildkite's test analytics API.