Methods
-
testSuite( [file], body [, options])
-
Create a test suite.
Parameters:
Name Type Argument Description filestring <optional>
The test spec file name, just use __filename.
bodytestSuiteBody To define test cased in this callback.
optionsobject <optional>
- Source:
- index.js
Properties:
Name Type Argument Default Description options.beforefunction Prepare work before all test cases.
options.afterfunction Cleanup work after all test cases.
options.serverEntrystring <optional>
"../../src/index.js" The entry file of @genx/server instance.
options.verboseboolean 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 suiteSuite The test suite object
- Source:
- index.js
-
testWithApp(app)
-
Test function with a worker app.
Parameters:
Name Type Description appApp The app
- Source:
- Suite.js
-
testWithRestClient(app, client)
-
Test function with a connected rest client.
Parameters:
Name Type Description appApp The app
clientRestClient The rest client
- Source:
- Suite.js