oolongtest

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package oolongtest starts an oolong TEA server (github.com/oolong-project/oolong, oolong/oolong-server) for integration tests.

Start uses, in order:

  • OOLONG_BASE_URL: a running server (for example http://127.0.0.1:3005 from oolong/docker-compose.tea-interop.yml).
  • OOLONG_SERVER_DIR: an oolong/oolong-server directory where `npm ci` and `npm run build` have run. The fixtures next to it (../fixtures/tea-1.0.0) are copied into a temporary directory the test owns, and `node dist/main.js` is started on a free port of 127.0.0.1 (node from PATH, or OOLONG_NODE).

With neither set the test is skipped, unless TEA_INTEGRATION_REQUIRED=1, in which case it fails.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// URL is the server's origin, e.g. http://127.0.0.1:41234. It is the
	// API root (SERVER_HOST) and the base of /.well-known/tea.
	URL string
}

Server is a running oolong server.

func Start

func Start(t testing.TB) *Server

Start returns a running oolong server for t, or skips t (see the package documentation).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL