Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBrowser ¶
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 ¶
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
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.