e2einteractive

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

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 added in v0.10.0

func RunUntilEndpointHit() (err 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 RunUntilSignal added in v0.14.0

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