ithelper

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBrowser

func CreateBrowser(t *testing.T) *core.Browser

CreateBrowser creates a browser configured for integration tests and closes it when the test finishes. Respects OPENSERP_INTEGRATION_HEADFUL for debugging (browser and page are left open for inspection).

func EngineOptions added in v0.8.3

func EngineOptions() core.SearchEngineOptions

EngineOptions returns engine options tuned for live-site integration runs. Real SERPs (Baidu especially) hydrate result cards client-side and can take well past the 5s default selector timeout on a first visit.

func HandleError

func HandleError(t *testing.T, operation string, err error)

HandleError skips on captcha/block/rate-limit/timeout (expected against live engines), fatals on other errors. In strict mode everything fatals.

func RunEngineTests added in v0.8.3

func RunEngineTests(t *testing.T, newEngine func(*core.Browser) core.SearchEngine)

RunEngineTests runs the live web + image search smoke checks shared by every engine's integration test: results come back, and the first one has a URL and a title. newEngine receives a fresh browser per subtest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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