Methods
-
testSuite( [file], body [, options])
-
Create a test suite.
Parameters:
Name Type Argument Description file
string <optional>
The test spec file name, just use __filename.
body
testSuiteBody To define test cased in this callback.
options
object <optional>
- Source:
- index.js
Properties:
Name Type Argument Default Description options.before
function Prepare work before all test cases.
options.after
function Cleanup work after all test cases.
options.serverEntry
string <optional>
"../../src/index.js" The entry file of @genx/server instance.
options.verbose
boolean Verbose mode.
Type Definitions
-
testCaseBody(data)
-
Test case body.
Parameters:
Name Type Description data
* Test data
- Source:
- Suite.js
-
testSuiteBody(suite)
-
Test body used to define test cases.
Parameters:
Name Type Description suite
Suite The test suite object
- Source:
- index.js
-
testWithApp(app)
-
Test function with a worker app.
Parameters:
Name Type Description app
App The app
- Source:
- Suite.js
-
testWithRestClient(app, client)
-
Test function with a connected rest client.
Parameters:
Name Type Description app
App The app
client
RestClient The rest client
- Source:
- Suite.js