Methods
-
generate(specPath, options)
-
Generates test artifacts based on the given API Spec and options
Parameters:
Name Type Description specPath
string path to the API spec document options
object options to apply during processing of API spec Returns:
- Type
- Promise.<GenerationResults>
-
merge2(obj1, obj2)
-
merges two objects, with obj1 taking override precedent
Parameters:
Name Type Description obj1
object dominant object to merge with obj2
object subordinate object to merge with Returns:
- Type
- object
Type Definitions
-
GenerationResults
-
GenerationResults is the final result of the generation function
Type:
- object
Properties:
Name Type Description generated
Array.<compilation.GeneratedTest> set of generated test objects