jstest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTestChrome

func RunTestChrome(t *testing.T, def http.Handler)

RunTestChrome compiles all tests in the current working directory for WASM+JS, and runs them in a headless Chrome browser using Docker. It will stream test results back to t.

Optionally, the default HTTP handler can be set to serve additional content to the the script.

The caller should specify the "!js" build tag, while all JS tests in the package should include "js" build tag.

func RunTestNodeJS

func RunTestNodeJS(t *testing.T)

RunTestNodeJS compiles all tests in the current working directory for WASM+JS, and runs them either in Docker or locally with NodeJS. It will stream test results back to t.

The caller should specify the "!js" build tag, while all JS tests in the package should include "js" build tag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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