Documentation ¶
Overview ¶
Package jstest is a test framework using js as test script
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter interface { // Before all test begin OnSetup(r *Runner) // When all test in a testfile is done OnTeardown(r *Runner) // When test case is register OnTestCase(r *Runner, test TestCase) TestCase }
Adapter is the interface of underlying logic manager
type RunOption ¶
RunOption is the option to run a test script
func DefaultRunOption ¶
func DefaultRunOption() *RunOption
DefaultRunOption returns the default RunOption
type Runner ¶
type Runner struct { Option RunOption // contains filtered or unexported fields }
Runner is the runner of test file
func (*Runner) AddModulePath ¶
AddModulePath add path as nodejs module search path
func (*Runner) AddTestFile ¶
AddTestFile add a js test file to Runner
func (*Runner) GlobalObject ¶
GlobalObject returns the global Object in js vm
Click to show internal directories.
Click to hide internal directories.