e2einteractive

package
v0.0.0-...-f88cfba Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenInBrowser

func OpenInBrowser(url string) error

OpenInBrowser opens given URL in your default browser.

func RunUntilEndpointHit

func RunUntilEndpointHit() error

RunUntilEndpointHit stalls current goroutine executions and prints the URL to local address. When URL is hit this function returns with nil to continue the execution. It also watches for SIGINT, SIGKILL or SIGHUP signals and does the same when any of those is seen.

This function is useful when you want to interact with e2e tests and manually decide when to finish. Use this function as opposed to RunUntilSignal for certain IDEs that does not send correct signal on stop (e.g. Goland pre 2022.3, see https://youtrack.jetbrains.com/issue/GO-5982).

func RunUntilEndpointHitWithPort

func RunUntilEndpointHitWithPort(port int) (err error)

RunUntilEndpointHitWithPort is like RunUntilEndpointHit, but it allows specifying static port.

func RunUntilSignal

func RunUntilSignal()

RunUntilSignal stops the current goroutine execution and watches for SIGINT, SIGKILL and SIGHUP signals. Once spotted it continues the execution. This function is useful when you want to interact with e2e tests and manually decide when to finish.

Types

This section is empty.

Jump to

Keyboard shortcuts

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